// FOR TESTING ONLY //protected void OnMouseUp() //{ // TestLevelManager.Instance.GoToLevel(1 - TestLevelManager.Instance.CurrentLevel); //} // protected virtual void StartAttacking(PlayerController player) { _isAttacking = true; _animator.AnimateAttack(); // Attacking will also change our direction. CurrentDirection = DirectionUtilities.DirectionFromVector(player.transform.position - transform.position); _animator.AnimateDirection(CurrentDirection); }