예제 #1
0
        void StartGame()
        {
            CreatorPlayerData data = new CreatorPlayerData();

            data.Owner.Player = PhotonNetwork.LocalPlayer.ActorNumber;
            Debug.Log($"player {data.Owner.Player} started game");

            creator.Players.Enqueue(data);
        }
예제 #2
0
        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);
        }