示例#1
0
 private void OnInited()
 {
     _updateFunc      = LuaManager.GetFunc <LuaFunction>("Update");
     _lateUpdateFunc  = LuaManager.GetFunc <LuaFunction>("LateUpdate");
     _fixedUpdateFunc = LuaManager.GetFunc <LuaFunction>("FixedUpdate");
     _focusFunc       = LuaManager.GetFunc <LuaFunction>("OnApplicationFocus");
     _pauseFunc       = LuaManager.GetFunc <LuaFunction>("OnApplicationPause");
 }
示例#2
0
文件: Main.cs 项目: z976686281/emo
        private void OnInited()
        {
            LuaManager.Init(Assets.assetBundleMode);

            _updateFunc      = LuaManager.GetFunc <LuaFunction>("Update");
            _lateUpdateFunc  = LuaManager.GetFunc <LuaFunction>("LateUpdate");
            _fixedUpdateFunc = LuaManager.GetFunc <LuaFunction>("FixedUpdate");
            _focusFunc       = LuaManager.GetFunc <LuaFunction>("OnApplicationFocus");
            _pauseFunc       = LuaManager.GetFunc <LuaFunction>("OnApplicationPause");
        }