private void SetAnims() { anim.SetBool("boost", sensor.boost); if (healthController.GetCurrentHealth() <= 0) { anim.SetTrigger("death"); // stop ! stop.StopIt(); } }
private void SetAnims() { anim.SetBool("charge", moveDir != Vector2.zero); if (healthController.GetCurrentHealth() <= 0) { anim.SetTrigger("death"); // stop! stop.StopIt(); } }