コード例 #1
0
 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());
 }
コード例 #2
0
    IEnumerator WaitTime()
    {
        yield return(new WaitForSeconds(1f));

        StartCoroutine(effectInstance.GetComponent <FireDebuff>().GoFireDebuff(target));
    }