Exemple #1
0
 /// <summary>
 /// When the trigger is loaded, optimize the Cutscene.
 /// </summary>
 void Awake()
 {
     if (Cutscene != null)
     {
         Cutscene.Optimize();
     }
 }
        /// <summary>
        /// When the trigger is loaded, optimize the Cutscene.
        /// </summary>
        void Awake()
        {
            if (Cutscene != null)
            {
                Cutscene.Optimize();

                Cutscene.eventHandle = onEnd;
            }
        }
 static public int Optimize(IntPtr l)
 {
     try {
         CinemaDirector.Cutscene self = (CinemaDirector.Cutscene)checkSelf(l);
         self.Optimize();
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int Optimize(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         CinemaDirector.Cutscene obj = (CinemaDirector.Cutscene)ToLua.CheckObject <CinemaDirector.Cutscene>(L, 1);
         obj.Optimize();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }