public void LateSetUp() { if (!photonView.IsMine) { photonView.TransferOwnership(myPlayer); } photonView.RPC("GivePlayerIndToPlay", RpcTarget.AllBuffered); Debug.Log("player ind to play :" + GameManager.playerIndexToPlay); OtherPanel.SetActive(false); thePrefabSpawner.enabled = true; theStateManager.enabled = true; charSelectionPanel.SetActive(true); display.SetActive(true); bankManager.SetActive(true); playerNameTagOn = true; }
private void GoToCharSelect() { if (PhotonNetwork.LocalPlayer.IsMasterClient) { PhotonNetwork.CurrentRoom.IsOpen = false;//we close the room to anyone else trying to join it when master client chose the game mode. MasterPanel.SetActive(false); } else { OtherPanel.SetActive(false); } thePrefabSpawner.enabled = true; theStateManager.enabled = true; charSelectionPanel.SetActive(true); display.SetActive(true); bankManager.SetActive(true); playerNameTagOn = true; }