Exemplo n.º 1
0
    public void Enter()
    {
        ownerAnimator = owner.GetComponent <Animator>();
        if (ownerAnimator == null)
        {
            ownerAnimator = owner.GetComponentInChildren <Animator>();
        }

        ownerAnimator.speed = 1f / attackSpeed;
        ownerAnimator.SetTrigger("Attack");

        startAtkTime = Time.time;
    }
Exemplo n.º 2
0
 public void Enter()
 {
     owner.GetComponent <Animator>().SetTrigger("Die");
 }