public void Restart() { particles.Play(); rigidBody2D.velocity = Vector2.zero; rigidBody2D.angularVelocity = 0; transform.rotation = Quaternion.identity; headBouncer.ResetBounce(); bodyBouncer.ResetBounce(); tailBouncer.ResetBounce(); }
public void Restart() { particles.Play(); rigidBody2D.velocity = Vector2.zero; rigidBody2D.angularVelocity = 0; transform.rotation = Quaternion.identity; headBouncer.ResetBounce(); bodyBouncer.ResetBounce(); tailBouncer.ResetBounce(); }