//========== メンバ変数 ========== //None IEnumerator Start() { // コンポーネントを取得 followerMng = FindObjectOfType <FollowerManager> (); playerlife = GetComponent <Life> (); managerObj = FindObjectOfType <Manager> (); shotTypeObj = GetComponent <ShotType> (); spaceship = GetComponent <Spaceship> (); superShot = GetComponent <SuperShot> (); audioObj = FindObjectOfType <AudioManager> (); shotChangerObj = FindObjectOfType <ShotTypeChanger> (); //初期の弾の種類を設定 shotTypeObj.setDefaultShot(); // 弾をプレイヤーと同じ位置/角度で作成 while (true) { int selectedShotType = shotTypeObj.getShotType(); Attack(selectedShotType); yield return(new WaitForSeconds(shotTypeObj.getPlayerShotDelay())); } }