public void FirstGameboardSet() { rUIController = GetComponent <rUIController>(); //photonView = GetComponent<PhotonView>(); if (PhotonNetwork.IsMasterClient) { if (PhotonNetwork.CurrentRoom.CustomProperties["Stage"] is string ID) //応急処置 { Debug.Log("Rgameboardjudge!!!!!" + ID); switch (ID) { case "A1": GameboardA1ButtonOn(); break; case "A2": GameboardA2ButtonOn(); break; case "B1": GameboardB1ButtonOn(); break; case "B2": GameboardB2ButtonOn(); break; case "B3": GameboardB3ButtonOn(); break; default: GameboardA1ButtonOn(); break; } } else { Debug.Log("rGameboard:Stage NotFound"); GameboardA1ButtonOn(); } } GameboardListUpdate(); }
//Roomに初めて入った時とGameが終わって部屋に戻ってきたときの処理 private void Start() { rUIController = scripts.GetComponent <rUIController>(); player = PhotonNetwork.PlayerList; int currentnum = PhotonNetwork.CurrentRoom.PlayerCount; for (int i = 0; i < currentnum; i++) { if (i < PhotonNetwork.CurrentRoom.PlayerCount - 1) { Debug.Log(player[i].NickName + "&" + player[currentnum - 1].NickName); if (player[i].NickName == player[currentnum - 1].NickName) { Debug.Log("new"); player[currentnum - 1].NickName = player[currentnum - 1].NickName + "2"; } } rUIController.ConnectUpdateList(player[i]); } }