void Awake() { animationController = GetComponentInChildren <MovementAnimationController>(); target = FindObjectOfType <PlayerScript>(); }
void Awake() { animationController = GetComponentInChildren <MovementAnimationController>(); playerCollider = GetComponent <CapsuleCollider2D>(); rb = GetComponent <Rigidbody2D>(); }