示例#1
0
    IEnumerator MoveEnemies()
    {
        enemiesMoving = true;


        yield return(null);

        if (enemies.Count == 0)
        {
            yield return(null);

            playerTurn = true;
        }

        for (int i = 0; i < enemies.Count; i++)
        {
            enemies[i].MoveEnemy();
            yield return(null);
        }

        if (bossManagerSc != null)
        {
            bossManagerSc.MoveBoss();
        }
        yield return(new WaitForSeconds(0.1f));

        playerTurn    = true;
        enemiesMoving = false;
    }