示例#1
0
        private void SetAnims()
        {
            anim.SetBool("boost", sensor.boost);

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

            if (healthController.GetCurrentHealth() <= 0)
            {
                anim.SetTrigger("death");
                // stop!
                stop.StopIt();
            }
        }