Exemple #1
0
    public IEnumerator ActionLoop()
    {
        for (int i = 0; i < attackActions.Count; i++)
        {
            AttackAction aA = attackActions[i];
            aA.ExecuteAction();
        }
        yield return(new WaitForSeconds(1f));

        for (int i = 0; i < defenceActions.Count; i++)
        {
            DefenceAction dA = defenceActions[i];
            dA.ExecuteAction();
        }
        yield return(new WaitForSeconds(1f));

        for (int i = 0; i < reconActions.Count; i++)
        {
            ReconAction rA = reconActions[i];
            rA.ExecuteAction();
        }
        ClearActions();
    }