that's my very first question in here (not a first visit searching solution, though ;D).
I've got an issue with ParticleSystem in Unity:
if (!dead) {
dieBang.enableEmission = false;
Vector2 newVelocity = rigidbody2D.velocity;
newVelocity.x = forwardMovementSpeed;
rigidbody2D.velocity = newVelocity;
} else
dieBang.enableEmission = true;
UpdateGroundedStatus ();
The problem is dieBang.enableEmmision
gets true
only when dead
state is caused by on object(laser) I manually "put" in the game. When character hits laser generated of prefab, it gets dead, stop moving etc. , but there is no dieBang
:D
Hope you can help me