private void Start() { wordText.text = holderClass.getMainWord(); sceneCam = GameObject.Find("Main Camera").GetComponent <Camera>(); wtCanvas = GameObject.Find("WTCanvas").GetComponent <Canvas>(); wtCanvas.renderMode = RenderMode.WorldSpace; wtCanvas.worldCamera = sceneCam; }
private void Awake() { holderClass = GameObject.Find("_GM").GetComponent <InputHolderClass>(); // _GM object has the script attached wordText.text = holderClass.getMainWord(); }