static int IntToEnum(IntPtr L)
    {
        int arg0 = (int)LuaDLL.lua_tonumber(L, 1);

        StaticModules.E_MonoBehaviourLiftCycle o = (StaticModules.E_MonoBehaviourLiftCycle)arg0;
        ToLua.Push(L, o);
        return(1);
    }
예제 #2
0
 static int AddLuaBehaviourLiftCycleFunction(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         StaticModules.E_MonoBehaviourLiftCycle arg0 = (StaticModules.E_MonoBehaviourLiftCycle)ToLua.CheckObject(L, 1, typeof(StaticModules.E_MonoBehaviourLiftCycle));
         LuaFunction arg1 = ToLua.CheckLuaFunction(L, 2);
         LuaBehaviour.AddLuaBehaviourLiftCycleFunction(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }