private void Start() { //photonView = GetComponent<PhotonView>(); rNetworkGameManager = rNetworkGameManagerObj.GetComponent <rNetworkGameManager>(); rGameboard = GetComponent <rGameboard>(); animationControllerscript = GetComponent <AnimationControllerscript>(); colorList = GetComponent <ColorList>(); maxPlayer = rNetworkGameManager.maxPlayer; currentRoomName.text = PhotonNetwork.CurrentRoom.Name; var roomproperties = new ExitGames.Client.Photon.Hashtable(); roomproperties["Set"] = false; PhotonNetwork.CurrentRoom.SetCustomProperties(roomproperties); var playerproperties = new ExitGames.Client.Photon.Hashtable(); playerproperties["set"] = false; playerproperties["setN"] = false; playerproperties["setS"] = false; PhotonNetwork.LocalPlayer.SetCustomProperties(playerproperties); GameSettingListUpdate();//ゲームからルームに戻ってきてた時いる rGameboard.FirstGameboardSet(); }
private void Awake() { gamemanager = scripts.GetComponent <Gamemanager>(); //photonView = scripts.GetComponent<PhotonView>(); gInstantiateController = scripts.GetComponent <gInstantiateController>(); animationControllerscript = scripts.GetComponent <AnimationControllerscript>(); scriptsPhotonView = scripts.GetComponent <PhotonView>(); gUIController = scripts.GetComponent <gUIController>(); }
public void Awake() { scoreController = scripts.GetComponent <ScoreController>(); gamemanager = scripts.GetComponent <Gamemanager>(); //photonView = scripts.GetComponent<PhotonView>();//scriptsにphotonviewを付けておくのを忘れずに。 animationControllerscript = scripts.GetComponent <AnimationControllerscript>(); gInstantiateController = scripts.GetComponent <gInstantiateController>(); scriptsPhotonView = scripts.GetComponent <PhotonView>(); gUIController = scripts.GetComponent <gUIController>(); gGameboardList = scripts.GetComponent <gGameboardList>(); if (PhotonNetwork.CurrentRoom.CustomProperties["Stage"] is string ID) { Debug.Log("turncontroller2.GameboardID"); turncontroller2GameboardID = ID; } }
private void Awake() { animationControllerscript = scripts.GetComponent <AnimationControllerscript>(); }