public void Finish() { IsEntryPointLoad = false; //Send stat switch (gameData.GameType) { // ----------------------------------------------------------------------------------------------- // case GameTypeEnum.MultyNew: SendSaveFirstRecord(); break; // ----------------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------------- // case GameTypeEnum.MultyNewFB: _networkManager.SaveFirstRecordForFB(gameData.gameId, Core.Instance.GetService <PlayerManager>().PlayerCar.model, () => { Core.Instance.GetService <StatesManager>().SwitchState(StatesEnum.MAIN_MULTIPLAYER_WINDOW); Core.Instance.StartCor( LoadGameScene("EntryPoint", () => { Core.Instance.GetService <UIManager>().ShowWindow(UIWindowEnum.SPLASH, false); } )); }, () => { Debug.LogError("Error send first FB statistics"); } ); break; // ----------------------------------------------------------------------------------------------- // case GameTypeEnum.MultyRecord: Debug.Log("MultyRecord"); SendSaveRecord(); break; // ----------------------------------------------------------------------------------------------- // case GameTypeEnum.MultyReplay: gameData.GameType = GameTypeEnum.MultyRecord; if (_handler != null) { _handler.Destroy(); } CreateGameHandler(); break; // ----------------------------------------------------------------------------------------------- // case GameTypeEnum.SingleNew: _handler.Destroy(); _statesManager.SwitchState(StatesEnum.MAIN_MULTIPLAYER_WINDOW); Core.Instance.StartCor( LoadGameScene("EntryPoint", () => { Core.Instance.GetService <UIManager>().ShowWindow(UIWindowEnum.SPLASH, false); } )); break; // ----------------------------------------------------------------------------------------------- } }