Exemplo n.º 1
0
 public ZAction GetLastAction()
 {
     if (_lastAction != null && _lastAction.IsComplete())
     {
         _lastAction = null;
     }
     return(_lastAction);
 }
Exemplo n.º 2
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);
            }
        }
    }