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