public void RemoveAction(SceneAction action) { if (_actions.Remove(action)) { action.Actor = null; } }
public virtual void Act(float delta) { for (int i = 0; i < _actions.Count; i++) { SceneAction action = _actions[i]; if (action.Act(delta)) { _actions.RemoveAt(i); action.Actor = null; i--; } } }
public void AddAction(SceneAction action) { action.Actor = this; _actions.Add(action); }
public void AddAction(SceneAction action) { Root.AddAction(action); }
public void RemoveAction(SceneAction action) { if (_actions.Remove(action)) action.Actor = null; }