示例#1
0
 void OnEnable()
 {
     if (luaObject != null)
     {
         LuaController.RegisterEventListener(luaObject);
     }
 }
示例#2
0
 void OnEnable()
 {
     if (scriptIsReady && luaObject != null)
     {
         if (l_OnEnable != null)
         {
             l_OnEnable(luaObject);
         }
         is_OnDisable = false;
         LuaController.RegisterEventListener(luaObject);
     }
 }
示例#3
0
        public void LuaRegisterEventAndCallAfterStart()
        {
            is_OnDisable = false;
            LuaController.RegisterEventListener(luaObject);
            scriptIsReady = true;

            foreach (CallInfo info in _callAfterStart)
            {
                Call(info.eventName, info.param);
            }
            _callAfterStart.Clear();
        }
示例#4
0
 void luaAwake()
 {
     if (l_Awake != null)
     {
         if (args != null)
         {
             l_Awake(luaObject, args);
         }
         else
         {
             l_Awake(luaObject);
         }
     }
     LuaController.RegisterEventListener(luaObject);
 }