Exemplo n.º 1
0
 public override void StopSkill(Animator animator, bool isBreak = false)
 {
     if (isBreak)
     {
     }
     else
     {
         KOFItem.DestoryByPool(lineInstance);
     }
 }
Exemplo n.º 2
0
        public override void StopSkill(Animator animator, bool isBreak = false)

        {
            if (isBreak)
            {
            }
            else
            {
                foreach (var v in spriteLineInstances)
                {
                    KOFItem.DestoryByPool(v);
                }
            }
        }
Exemplo n.º 3
0
    public override IEnumerator Die()
    {
        GetComponent <Animator>().SetTrigger("Dead");
        StopCoroutine(updateBehave);
        if (runBehave != null)
        {
            StopCoroutine(runBehave);
            runBehave = null;
        }
        if (attackBehave != null)
        {
            StopCoroutine(attackBehave);
            attackBehave = null;
        }

        yield return(new WaitForSecondsRealtime(10));

        KOFItem.DestoryByPool(this);
    }
    IEnumerator WaitForBack()
    {
        hero.state.Stage = 0;
        skinFire.Stop();
        StartCoroutine(MaterialChaneBack());
        StartCdColding();
        hero.statusBox.cdBar.StartCooling(skillIcon, cd);
        fire.Play();
        yield return(new WaitForSeconds(1.5f));

        hero.state.Stage              = 0;
        hero.transform.localScale    /= 3;
        hero.transform.localPosition -= new Vector3(0, 3, 0);
        flameInstance.Stop();
        fire.transform.localScale *= 3;
        pool.SetActive(true);
        yield return(new WaitForSeconds(1f));

        fire.Stop();
        yield return(new WaitForSeconds(5f));

        fire.transform.localScale /= 3;
        KOFItem.DestoryByPool(flameInstance);
    }