Beispiel #1
0
        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");
        }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     DontDestroyOnLoad(gameObject);
     LuaManager.Init(OnInited);
 }