Exemplo n.º 1
0
 /// <summary>
 /// Trigger this event and Play the given Cutscene.
 /// </summary>
 public override void Trigger()
 {
     if (cutscene != null)
     {
         cutscene.Skip();
     }
 }
 static public int Skip(IntPtr l)
 {
     try {
         CinemaDirector.Cutscene self = (CinemaDirector.Cutscene)checkSelf(l);
         self.Skip();
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int Skip(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         CinemaDirector.Cutscene obj = (CinemaDirector.Cutscene)ToLua.CheckObject <CinemaDirector.Cutscene>(L, 1);
         obj.Skip();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 4
0
 void Update()
 {
     if (SkipButtonName != null || SkipButtonName != string.Empty)
     {
         // Check if the user wants to skip.
         if (Input.GetButtonDown(SkipButtonName))
         {
             if (Cutscene != null && Cutscene.State == CinemaDirector.Cutscene.CutsceneState.Playing)
             {
                 Cutscene.Skip();
             }
         }
     }
 }