private void OffRange(RangeDetector d)
 {
     rampart = d.GetRampart();
     movementBehaviour.enabled = true;
     movementBehaviour.SetCanMove(true);
 }
 private void OnRange(RangeDetector d)
 {
     rampart = d.GetRampart();
     movementBehaviour.SetCanMove(false);
 }