private void LoadBoard(Network.GameSetup setup) { string assetName; string board = Cheats.Get().GetBoard(); if (string.IsNullOrEmpty(board)) { assetName = GameDbf.Board.GetRecord(setup.Board).GetAssetName("PREFAB"); } else { assetName = board; } if (UniversalInputManager.UsePhoneUI != null) { assetName = string.Format("{0}_phone", assetName); } AssetLoader.Get().LoadBoard(assetName, new AssetLoader.GameObjectCallback(this.OnBoardLoaded), null, false); }
private void ProcessGameSetupPacket() { Network.GameSetup gameSetup = GameMgr.Get().GetGameSetup(); this.LoadBoard(gameSetup); GameState.Get().OnGameSetup(gameSetup); }