Exemple #1
0
    protected virtual IEnumerator Work()
    {
        while (target.alive)
        {
            yield return(new WaitForSeconds(0.3f));

            target.Hit(ATT);
        }

        target = null;
        StartCoroutine("Idle");
    }