Example #1
0
    // Start is called before the first frame update
    void Awake()
    {
        da        = this.gameObject.GetComponentInParent <DynamicAltitude>();
        fly       = GameObject.FindGameObjectWithTag("PilotStation").GetComponent <Flying>();
        autoPilot = GameObject.FindObjectOfType <PlayerAutopilot>();

        audioM = GameObject.Find("AudioManager").GetComponent <AudioManager>();
    }
Example #2
0
 // Start is called before the first frame update
 void Awake()
 {
     da  = this.gameObject.GetComponentInParent <DynamicAltitude>();
     fly = GameObject.FindGameObjectWithTag("PilotStation").GetComponent <Flying>();
 }
Example #3
0
 // Start is called before the first frame update
 void Awake()
 {
     da      = GameObject.FindObjectOfType <DynamicAltitude>();
     planeRB = this.gameObject.GetComponentInParent <Rigidbody>();
 }