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