public override void StartSkill(Animator animator) { hero.state.Mana -= manaCost; effectInstance = KOFItem.InstantiateByPool(effect, LeftHand.transform, gameObject.layer); effectInstance.GetComponent <FireDebuff>().target = target; StartCoroutine(WaitTime()); }
IEnumerator WaitTime() { yield return(new WaitForSeconds(1f)); StartCoroutine(effectInstance.GetComponent <FireDebuff>().GoFireDebuff(target)); }