public SubZone(float _minAngle, float _maxAngle, float _minRange, float _maxRange, int _sliceIndex, string _identity, Submarine submarine) { minAngle = _minAngle; maxAngle = _maxAngle; minRange = _minRange; maxRange = _maxRange; sliceIndex = _sliceIndex; identity = _identity; needToBeAvoided = false; weight = -666; zoneCenterPos = submarine.coords.position + submarine.GetDirectionFromAngle(submarine.GetNormAngle(minAngle + Mathf.DeltaAngle(minAngle, maxAngle) * 0.5f)) * (maxRange + minRange) * 0.5f; }