/// <summary> /// Grabs our health and controller /// </summary> protected virtual void Initialization() { _health = this.gameObject.GetComponent <Health>(); _controller = this.gameObject.GetComponent <TopDownController>(); }
/// <summary> /// On init we grab our Health component /// </summary> public override void Initialization() { _health = _brain.gameObject.GetComponentInParent <Health>(); }