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>(); }
private void Awake() { scripts = GameObject.Find("scripts"); gInstantiateController = scripts.GetComponent <gInstantiateController>(); gamemanager = scripts.GetComponent <Gamemanager>(); //piece = gameObject; gameObject.name = gameObject.GetComponent <PhotonView>().Owner.NickName + (" : ") + gameObject.GetComponent <PhotonView>().ViewID; gInstantiateController.WorldObjectSettings(gameObject); }
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() { startPlayerCount = PhotonNetwork.CurrentRoom.PlayerCount; scoreSortScriptObj.SetActive(true); gNetworkGameManager = GetComponent <gNetworkGameManager>(); gUIController = GetComponent <gUIController>(); gGamebordList = GetComponent <gGameboardList>(); gAnimationController = GetComponent <gAnimationController>(); gInstantiateController = GetComponent <gInstantiateController>(); waitSetProperties = waitSetPropertiesObj.GetComponent <WaitSetProperties>(); turnController1 = turnController1Obj.GetComponent <gTurnController1>(); turnController2 = turnController2Obj.GetComponent <gTurnController2>(); //photonViewTurn1 = turnController1Obj.GetComponent<PhotonView>(); destroyJudge = GetComponent <DestroyJudge>(); //scoreController = GetComponent<ScoreController>(); scoreSortScript = scoreSortScriptObj.GetComponent <ScoreSortScript>(); //photonViewTurn2 = turnController2Obj.GetComponent<PhotonView>(); }
private void Awake() { gInstantiateController = GetComponent <gInstantiateController>(); }