コード例 #1
0
 // Start is called before the first frame update
 void Awake()
 {
     bdc = this.GetComponentInParent <BombDropController>();
     //Quaternion rotation = this.transform.rotation * Quaternion.Euler(-90, 0, 0);
     //currentBomb = Instantiate(bombPrefab, new Vector3(this.transform.position.x, this.transform.position.y - distanceBelowShip, this.transform.position.z + distanceInFrontShip), rotation, this.transform.parent);
     //leftBomb = Instantiate(bombPrefab, new Vector3(this.transform.position.x - distanceToSideShip, this.transform.position.y - distanceBelowShip, this.transform.position.z + distanceInFrontShip), rotation, this.transform.parent);
     //rightBomb = Instantiate(bombPrefab, new Vector3(this.transform.position.x + distanceToSideShip, this.transform.position.y - distanceBelowShip, this.transform.position.z + distanceInFrontShip), rotation, this.transform.parent);
     //reloading = true;
     rm           = this.GetComponentInParent <ReloadManager>();
     audioManager = GameObject.Find("AudioManager").GetComponent <AudioManager>();
 }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     bdc    = GameObject.FindObjectOfType <BombDropController>();
     pfc    = GameObject.FindObjectOfType <PlayerFlightControls>();
     height = pfc.presetAlts[0];
 }
コード例 #3
0
ファイル: BombCamTrack.cs プロジェクト: ShaunPrince/BombsAway
 // Start is called before the first frame update
 void Start()
 {
     bdc = GameObject.FindObjectOfType <BombDropController>();
 }