private IEnumerator Erase() { StartCoroutine(ShakeAnimation()); StartCoroutine(FlashAnimation()); yield return(new WaitUntil(IsFinished)); enemy.Dead(); Destroy(this); }
private IEnumerator Erase() { StartCoroutine(ShakeAnimation()); StartCoroutine(FlashAnimation()); yield return(new WaitUntil(IsFinished)); enemy.Dead(); Destroy(this); }