// Start is called before the first frame update
 private void Start()
 {
     jet            = JetStatus.Get();
     playerMovement = player.GetComponent <AircraftMovement>();
     playerGravity  = player.GetComponent <Rigidbody>();
     fuelBar        = GetComponent <Scrollbar>();
 }
Esempio n. 2
0
 private void Start()
 {
     playerAircraft     = player.GetComponentInParent <AircraftMovement>();
     playerRigidbody    = player.GetComponentInParent <Rigidbody>();
     jet                = JetStatus.Get();
     explosionParticles = explosion.GetComponent <ParticleSystem>();
 }
Esempio n. 3
0
 private void Start()
 {
     smooth      = 1.2f;
     inclination = 0;
     jet         = JetStatus.Get();
     speedLimit  = 100;
     jet.speed   = 0;
 }
Esempio n. 4
0
 // Start is called before the first frame update
 private void Start()
 {
     target           = GetComponentInChildren <UIFollowTarget>();
     enemyMG          = GetComponentInChildren <AircraftMachinegun>();
     player           = JetStatus.Get();
     enemiesDestroyed = EnemiesDestroyed.Get();
     player.enemiesLeft++;
     explosionParticles = explosion.GetComponent <ParticleSystem>();
 }
Esempio n. 5
0
 // Start is called before the first frame update
 private void Start()
 {
     bullet.GetComponent <MeshRenderer>().enabled = false;
     bullet.GetComponent <BoxCollider>().enabled  = false;
     bullet.SetActive(false);
     jet             = JetStatus.Get();
     destObject      = GetComponentInParent <Transform>();
     parentTransform = GetComponentInParent <Transform>();
 }
Esempio n. 6
0
 // Start is called before the first frame update
 private void Start()
 {
     oldPanelColor             = new Vector4(0, 0, 0, 0.7f);
     playerStatus              = JetStatus.Get();
     EnemiesDestroyedSingleton = EnemiesDestroyed.Get();
     playerAircraft            = player.GetComponent <AircraftMovement>();
     playerCamera              = player.GetComponent <AircraftCamera>();
     UIPanel = panel.GetComponent <Image>();
     enemiesDestroyedText.text = "";
     finishText.text           = "";
     UIPanel.color             = new Vector4(0, 0, 0, 0);
     Cursor.visible            = false;
     levelStatus = GetComponent <LevelStatus>();
 }
Esempio n. 7
0
 // Start is called before the first frame update
 void Start()
 {
     jet = JetStatus.Get();
 }
Esempio n. 8
0
 private void Start()
 {
     transform.position = dirFrom;
     playerJet          = JetStatus.Get();
 }