public bool IsInRange(BaseUnit targetUnit) { if (Mathf.Abs(targetUnit.GetUnitPositionX() - GetUnitPositionX()) < 3f) return true; return false; }