【3Dゲームエンジン】Unity質問スレッド15 [転載禁止]©5ch.net
■ このスレッドは過去ログ倉庫に格納されています
0749名前は開発中のものです。
2015/02/20(金) 16:26:12.91ID:hnK2+Ak8GameObject.Find("player").gameObject.GetComponent<FPSInputController>().enabled = false;
と、書くのと
Start()にplayer = GameObject.Find("player");と書いて
player.gameObject.GetComponent<FPSInputController>().enabled = false;
と書くのはどちらがいいですか?
ちなみに、この処理はtrueするやつも含めて複数回出てきます
■ このスレッドは過去ログ倉庫に格納されています