// Use this for initialization void Start() { #if UNITY_EDITOR SYLuaEnv.sMode = RunMode; // 方便编辑器模式下开发。其他情况都为run #endif SYLuaEnv.Init(); SYLuaEnv.Start(); Screen.sleepTimeout = SleepTimeout.NeverSleep; Debug.Log("Application.targetFrameRate = " + Application.targetFrameRate); Application.targetFrameRate = 60; Debug.Log("Application.targetFrameRate = " + Application.targetFrameRate); }
private void OnDestroy() { //Debug.Log("LuaUIBehaveour destroy"); SYLuaEnv.FlzEvent("ui", "destroy", luaCtx); }
// Use this for initialization void Start() { SYLuaEnv.FlzEvent("ui", "start", luaCtx); }
private void OnDestroy() { SYLuaEnv.ResEvent("res", "destroy", gameObject.GetInstanceID().ToString()); }
private void LateUpdate() { SYLuaEnv.LateUpdate(Time.deltaTime); SYLuaEnv.sEnv.Tick(); }