Assets/Deps/emotitron/Network/NST/NSTMapBounds.cs
/// <summary>
/// Whenever an instance of NSTMapBounds gets removed, the combinedBounds needs to be rebuilt with this.
/// </summary>
Whenever an instance of NSTMapBounds gets removed, the combinedBounds needs to be rebuilt with this.
Whenever an instance of NSTMapBounds gets removed the combinedBounds needs to be rebuilt with this .
private static void RecalculateCombinedBounds()
		{
			if (activeBounds.Count == 0)
			{
				combinedBounds = fallBackBounds;
#if UNITY_EDITOR
				if (NSTSettings.single.logTestingInfo)
					Debug.LogWarning("There are no active NSTMapBounds components in the scene.");
#endif
				NotifyOtherClassesOfBoundsChange();
				return;
			}
			combinedBounds = activeBounds[0];
			for (int i = 1; i < activeBounds.Count; i++)
			{
				combinedBounds.Encapsulate(activeBounds[i]);
			}
			NotifyOtherClassesOfBoundsChange();
		}
private static void RecalculateCombinedBounds ( ) { if ( activeBounds . Count == 0 ) { combinedBounds = fallBackBounds ; if UNITY_EDITOR if ( NSTSettings . single . logTestingInfo ) Debug . LogWarning ( " " ) ; endif NotifyOtherClassesOfBoundsChange ( ) ; return ; } combinedBounds = activeBounds [ 0 ] ; for ( int i = 1 ; i < activeBounds . Count ; i ++ ) { combinedBounds . Encapsulate ( activeBounds [ i ] ) ; } NotifyOtherClassesOfBoundsChange ( ) ; }
Whenever an instance of NSTMapBounds gets removed, the combinedBounds needs to be rebuilt with this.
Whenever an instance of NSTMapBounds gets removed the combinedBounds needs to be rebuilt with this .
// Notify affected classes of the world size change.