void OnApplicationPause(bool isPause) { if (InitLuaFramework) { if (isPause) { //游戏暂停 一切停止 LuaToCSFunction.CallToLuaFunction("GameEnterBackground"); } else { LuaToCSFunction.CallToLuaFunction("GameEnterForeground"); } } if (isPause) { Debug.Log("游戏暂停!"); } else { } }
// Use this for initialization void Start() { LuaToCSFunction.CallToLuaFunction("EnterFightScene"); }