public void Enter() { ownerAnimator = owner.GetComponent <Animator>(); if (ownerAnimator == null) { ownerAnimator = owner.GetComponentInChildren <Animator>(); } ownerAnimator.speed = 1f / attackSpeed; ownerAnimator.SetTrigger("Attack"); startAtkTime = Time.time; }
public void Enter() { owner.GetComponent <Animator>().SetTrigger("Die"); }