Esempio n. 1
0
    private IEnumerator Attack()
    {
        int index = Random.Range(0, 4);

        currentEye = eyes[index];
        yield return(new WaitForSeconds(2f));

        currentEye.StartAttacking();
    }