protected override void OnAwake() { // Retrieves the desired components base.OnAwake(); _aiComponent = GetComponentInParent<AIBase>(); _independentControl = GameObject.FindGameObjectWithTag(Tags.GameController).GetComponent<GameControllerIndependentControl>(); // Registers itself to the AIBase events _aiComponent.AddListener(this); }