spaceship = GetComponent<SpaceShipScript> (); scoreScript = GameObject .FindWithTag("GameController") .GetComponent<ScoreScript>();
上のspaceshipは取得できるが下を
scoreScript = GetComponent<ScoreScript>();にすると取得できなくなります。
この違いはなんですか?
と思いきやComponentがないので取得できるわけねえか。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。