void Start() { navMeshAgent = gameObject.GetComponent <NavMeshAgent>(); backpack = gameObject.GetComponent <BackpackComponent>(); horseAnim = gameObject.GetComponentInChildren <Animator>(); if (BreathInput != null) { testData = BreathInput.GetComponent <PEPTestDataInput>(); measurements = BreathInput.GetComponent <PepMeasurementsComponent>(); } else { Debug.LogError("There is no breath input in the scene. This is bad"); } }
void Start() { navMeshAgent = gameObject.GetComponent<NavMeshAgent>(); backpack = gameObject.GetComponent<BackpackComponent>(); horseAnim = gameObject.GetComponentInChildren<Animator>(); if(BreathInput != null) { testData = BreathInput.GetComponent<PEPTestDataInput>(); measurements = BreathInput.GetComponent<PepMeasurementsComponent>(); } else { Debug.LogError("There is no breath input in the scene. This is bad"); } }