private void Awake() { pigeonPhysics = GetComponent <PigeonPhysics>(); if (!pigeonPhysics) { Debug.Log("ERROR: PigeonPhysics script not added to the gameobject"); } }
private void Start() { aircraftPhysics = FindObjectOfType <PigeonPhysics>(); if (!aircraftPhysics) { Debug.LogError("(Flight Controls) Flight controller is null on camera!"); return; } target = GameObject.FindGameObjectWithTag("Aircraft Camera Target").transform; if (!target) { Debug.LogError("(Flight Controls) Camera target is null!"); return; } }