public void JoinGame(string nickname) { SetGameCamera(); SScript.SetPlayerInGame(nickname, true); switch (GameMode) { case "LANGame": Player = SScript.JoinEmptyGame(nickname, 2); break; case "EasyAI": Player = SScript.JoinNewGame(nickname, 2); break; case "NormalAI": Player = SScript.JoinNewGame(nickname, 2); break; case "Sandbox": Player = SScript.JoinNewGame(nickname, 1); break; case "Hotseat": Player = SScript.JoinNewGame(nickname, 2); break; } Game = SScript.GetGame(nickname); GameId = Game.Id; RpcJoinGame(GameId); SetHandset(nickname, Player); RpcSpawnCScript(); RpcSetPNumber(Player.Number); DownloadData(); for (int x = 0; x < 4; x++) { RpcSetTopCardInQueue(GameId, x, STopCardInQueue(x)); } // Specjal modes if (GameMode == "NormalAI") { SScript.JoinGame("NormalAI", 2, GameId); SetHandset("NormalAI", Game.NextPlayer(Player)); } else if (GameMode == "EasyAI") { SScript.JoinGame("EasyAI", 2, GameId); SetHandset("NormalAI", Game.NextPlayer(Player)); } else if (GameMode == "Hotseat") { SScript.JoinGame(nickname, 2, GameId); SetHandset(nickname, Game.NextPlayer(Player)); } }