public override void OnPlayerEnteredRoom(Photon.Realtime.Player newPlayer) { GameObject entry = Instantiate(PlayerListEntryPrefab, PlayerListContent.transform); entry.GetComponent <PlayerEntries>().Initialize(newPlayer.ActorNumber, newPlayer.NickName); playerListEntries.Add(newPlayer.ActorNumber, entry); startBtn.gameObject.SetActive(CheckAllReady()); }
public override void OnPlayerPropertiesUpdate(Photon.Realtime.Player targetPlayer, Hashtable changedProps) { startBtn.gameObject.SetActive(CheckAllReady()); }
public override void OnPlayerLeftRoom(Photon.Realtime.Player otherPlayer) { Destroy(playerListEntries[otherPlayer.ActorNumber].gameObject); playerListEntries.Remove(otherPlayer.ActorNumber); }