void Start() { actualPosition = this.transform.position; gameManager = GameObject.Find("Game Manager").GetComponent <OnlineGameManager2>(); orderGenerator = GameObject.Find("Game Manager").GetComponent <OrderGenerator>(); audioSource = this.GetComponent <AudioSource>(); active = false; completed = false; }
void Start() { instance = this; foreach (Player p in PhotonNetwork.PlayerList) { playerNames.Add(p.NickName); } playerName = PhotonNetwork.LocalPlayer.NickName; if (PhotonNetwork.IsMasterClient) { startButton.SetActive(true); } }