コード例 #1
0
 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;
 }
コード例 #2
0
 private void Awake()
 {
     holderClass   = GameObject.Find("_GM").GetComponent <InputHolderClass>(); // _GM object has the script attached
     wordText.text = holderClass.getMainWord();
 }