private void Start() { ChangeQuality.setCurrentQuality(); name = "MultiplayerManager"; DontDestroyOnLoad(this); HeroCostume.Init(); CharacterMaterials.Init(); RCManager.ClearAll(); heroes = new List <HERO>(); titans = new List <TITAN>(); hooks = new List <Bullet>(); AnarchyManager.DestroyMainScene(); }
public void OnMasterClientSwitched(AOTEventArgs args) { print("OnMasterClientSwitched"); if (gameTimesUp) { return; } if (PhotonNetwork.IsMasterClient) { GameModes.Load(); GameModes.ForceChange(); GameModes.oldHash["motd"] = null; RCManager.ClearAll(); RestartGame(true, false); } }