//insert the action NOW. // will interrupt current action. current action will be played after this action inserted. public Vignette InsertActionFirst(SamAction action, bool interrupt = true) { if (interrupt && CurrentAction != null) { CurrentAction.Interrupt(); } actionList.AddFirst(action); RestartCurrentAction(); return(this); }
//add an action. to the back of the list. public void AddAction(SamAction action) { actionList.AddLast(action); }
public Vignette InsertActionLast(SamAction action) { actionList.AddLast(action); return(this); }
//remove an action. //will search the list. public void RemoveAction(SamAction action) { actionList.Remove(action); }