public void Init() { mainUI.Init(PhotonNetwork.IsMasterClient, delegate { SendRPC("GameStart"); }, PhotonNetwork.CurrentRoom.MaxPlayers); foreach (var p in PhotonNetwork.PlayerList) { AddPlayer(p); } mainUI.ChangeMasterPlayer(PhotonNetwork.MasterClient.NickName, PhotonNetwork.NickName); }