示例#1
0
 //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);
 }
示例#2
0
 //add an action. to the back of the list.
 public void AddAction(SamAction action)
 {
     actionList.AddLast(action);
 }
示例#3
0
 public Vignette InsertActionLast(SamAction action)
 {
     actionList.AddLast(action);
     return(this);
 }
示例#4
0
 //remove an action.
 //will search the list.
 public void RemoveAction(SamAction action)
 {
     actionList.Remove(action);
 }