Ejemplo n.º 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>();
    }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Awake()
 {
     da  = this.gameObject.GetComponentInParent <DynamicAltitude>();
     fly = GameObject.FindGameObjectWithTag("PilotStation").GetComponent <Flying>();
 }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 void Awake()
 {
     da      = GameObject.FindObjectOfType <DynamicAltitude>();
     planeRB = this.gameObject.GetComponentInParent <Rigidbody>();
 }