Example #1
0
 private void Awake()
 {
     pigeonPhysics = GetComponent <PigeonPhysics>();
     if (!pigeonPhysics)
     {
         Debug.Log("ERROR: PigeonPhysics script not added to the gameobject");
     }
 }
Example #2
0
    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;
        }
    }