예제 #1
0
    public void UpdateActions(float dt)
    {
        int index = 0;

        while (index < _actionsList.Count)
        {
            ZAction action = _actionsList[index];
            if (action.IsComplete())
            {
                action.End();
                foreach (var actionChild in action.GetAAction())
                {
                    AddParalelAction(actionChild);
                }
                _actionsList.Remove(action);
            }
            else
            {
                index++;
                action.Update(dt);
            }
        }
    }