void StartGame() { CreatorPlayerData data = new CreatorPlayerData(); data.Owner.Player = PhotonNetwork.LocalPlayer.ActorNumber; Debug.Log($"player {data.Owner.Player} started game"); creator.Players.Enqueue(data); }
IEnumerator PlaySingle() { infoBack.SetActive(false); singlePlayerLives = 5; livesText.text = singlePlayerLives.ToString(); yield return(new WaitForSeconds(0.5f)); CreatorPlayerData data = new CreatorPlayerData(); data.Owner.Player = 1; creator.Players.Enqueue(data); yield return(null); }