private void SetGameMode() { if (PhotonNetwork.connected) { mode = GameMode.ONLINE; } else if (options.IsBotGame) { mode = GameMode.BOT; botManager = gameObject.AddComponent <BotManager>(); } else if (options.IsTutorialGame) { mode = GameMode.TUTORIAL; botManager = gameObject.AddComponent <BotManager>(); } else { mode = GameMode.LOCAL; } Debug.Log("IsOnline: " + IsOnlineGame.ToString()); Debug.Log("IsBot: " + IsBotGame.ToString()); Debug.Log("IsLocal: " + IsLocalGame.ToString()); Debug.Log("IsSimulated: " + IsSimulatedGame.ToString()); Debug.Log("IsTutorial: " + IsTutorialGame.ToString()); }
public override int GetHashCode() { unchecked { var hashCode = Id.GetHashCode(); hashCode = (hashCode * 397) ^ (Team1 != null ? Team1.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Team2 != null ? Team2.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)GameState; hashCode = (hashCode * 397) ^ IsComplete.GetHashCode(); hashCode = (hashCode * 397) ^ (WinningTeam != null ? WinningTeam.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IsSimulatedGame.GetHashCode(); hashCode = (hashCode * 397) ^ CreatedDate.GetHashCode(); return(hashCode); } }