Example #1
0
 public void addElement(CutSceneElement element)
 {
     if(element.GetType() ==  (typeof( Move))){
         inactiveMoves.Add((Move) element);
     }
     else if(element.GetType() ==  (typeof( CutsceneInstantiateDestroy))){
         inactiveInstantiateDestroys.Add (new CutsceneInstantiateDestroy());
     }
     else if(element.GetType() == (typeof(PlayerControl))){
         Debug.Log("found player type");
         inactivePlayerControls.Add(new PlayerControl());
     }
     else if(element.GetType() == (typeof(CutsceneVisibility))){
         inactiveCutsceneVisibilities.Add(new CutsceneVisibility());
     }
     else if(element.GetType() == (typeof(CutsceneWaitForInput))){
         inactiveCutsceneWaitForInputs.Add(new CutsceneWaitForInput());
     }
     inactiveCutsceneElements.Add(element);
 }
Example #2
0
 public void removeElement(CutSceneElement element)
 {
     if(element.GetType() ==  (typeof( Move))){
         inactiveMoves.Remove((Move) element);
     }
     else if(element.GetType() ==  (typeof( CutsceneInstantiateDestroy))){
         inactiveInstantiateDestroys.Remove((CutsceneInstantiateDestroy) element);
     }
     else if(element.GetType() ==  (typeof(PlayerControl))){
         inactivePlayerControls.Remove((PlayerControl) element);
     }
     else if(element.GetType() ==  (typeof(CutsceneVisibility))){
         inactiveCutsceneVisibilities.Remove((CutsceneVisibility) element);
     }
     else if(element.GetType() ==  (typeof(CutsceneWaitForInput))){
         inactiveCutsceneWaitForInputs.Remove((CutsceneWaitForInput) element);
     }
     inactiveCutsceneElements.Remove(element);
 }