예제 #1
0
        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);
        }