public void Initialise() { myAgent = GetComponent <GoapAgent>(); GetComponent <Health>().HealthChangedActions.Add(OnHealthChanged); SetupStateMachine(); myDetectionObj.GetComponent <SphereCollider>().radius = DetectionRadius; }