public float GetSetting(float[] from, PlatformData.SizeType type) { if (from.Length <= 0) { return(0); } return(from[Mathf.Clamp((int)type, 0, from.Length - 1)]); }
public float GetSideOffset(PlatformData.SizeType type) { return(GetSetting(SideOffsets, type)); }
public float GetLengths(PlatformData.SizeType type) { return(GetSetting(Lengths, type)); }