レス書き込み
スレへ戻る
写
レス栞
レス消
【ゲームエンジン】Unity初心者質問スレBuild1
PC,スマホ,PHSは
ULA
べっかんこ
公式(スマホ)
公式(PC)
で書き込んでください。
名前
メール
引用切替:
レスアンカーのみ
>>135 > で、>>134を > while (true) > { > // 子要素を全て取得する > for (int i = 0; i < transform.childCount; i++) > { > Transform shotPosition = transform.GetChild(i); > > if(title.activeSelf == false){ > // ShotPositionの位置/角度で弾を撃つ > spaceship.Shot(shotPosition); > } > } > // shotDelay秒待つ > yield return new WaitForSeconds(spaceship.shotDelay); > } > と書き加えました。 > > もちろん、 > // タイトルオブジェクトを取得 > private GameObject title; > // Titleゲームオブジェクトを検索し取得する > title = GameObject.Find("Title"); > をクラス内に記載もしました。 > > そしたら、敵がゲーム中も一切弾を撃たなくなりました。 > エラー文は > NullReferenceException: Object reference not set to an instance of an object > Enemy+<Start>c__Iterator0.MoveNext () (at Assets/Scripts/Enemy.cs:46) > UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) > (at /Users/builduser/buildslave/unity/build/Runtime/Export/Coroutines.cs:17) > です。
ローカルルール
SETTING.TXT
他の携帯ブラウザのレス書き込みフォームはこちら。
書き込み設定
で書き込みサイトの設定ができます。
・
ULA
・
べっかんこ(身代わりの術)
・
べっかんこ(通常)
・
公式(スマホ)
・
公式(PC)[PC,スマホ,PHS可]
書き込み設定(板別)
で板別の名前とメールを設定できます。
メモ帳
(0/65535文字)
上
下
板
覧
索
設
栞
歴
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.012s