Multiple Collision

I had this issue which i did not liked it, the problem was that the rocket would not stop sounds or particles after it hits (success, death etc) obstacles.
It was not a big problem, but just a little code was required to solve it.
So I did it. Its all shown in the video before and after the changes were made.
Also if have made any mistakes then please do correct me.
Thanks

Declare a bool like “isPlayerDied”…
If player died make that bool to true…
Then play particals like this…
If (!isPlayerDied){
deathParticals.Play(); // When hit with obstical
}
I uploaded this game on play store you can check it…

Privacy & Terms