public void Clear() { _events.Clear(); CurrentEvent.InterruptEvent(); CurrentEvent = null; }
public void AddAction(Action action) { _events.Add(action); }
public bool RemoveAction(Action action) { return _events.Remove(action); }
protected IEnumerator StartNextAction() { if (_events.Count > 0) { CurrentEvent = _events[0]; _events.RemoveAt(0); } else { CurrentEvent = new EmptyAction(); } return CurrentEvent.NextFrame().GetEnumerator(); }