ActivateModule() public method

See BaseInputModule.

public ActivateModule ( ) : void
return void
 static public int ActivateModule(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         self.ActivateModule();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
Exemplo n.º 2
0
 static public int ActivateModule(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         self.ActivateModule();
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 3
0
 static int ActivateModule(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.EventSystems.StandaloneInputModule obj = (UnityEngine.EventSystems.StandaloneInputModule)ToLua.CheckObject <UnityEngine.EventSystems.StandaloneInputModule>(L, 1);
         obj.ActivateModule();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }