Assets/Deps/emotitron/Network/NST/NSTSettings.cs
/// <summary>
/// Call this at the awake of other NST components to make sure that NSTSettings exists in the scene.
/// </summary>
Call this at the awake of other NST components to make sure that NSTSettings exists in the scene.
Call this at the awake of other NST components to make sure that NSTSettings exists in the scene .
public static void EnsureSettingsExistsInScene()
		{
			if (single != null)
				return;
			var preexist = FindObjectOfType<NSTSettings>();
			if (preexist != null)
				return;
			DebugX.LogWarning("<b>No NSTSettings found in scene. Adding one with default settings.</b> You probably want to edit the settings yourself.");
			GameObject go = new GameObject("NST Settings");
			single = go.AddComponent<NSTSettings>();
		}
public static void EnsureSettingsExistsInScene ( ) { if ( single != null ) return ; var preexist = FindObjectOfType < NSTSettings > ( ) ; if ( preexist != null ) return ; DebugX . LogWarning ( " " ) ; GameObject go = new GameObject ( " " ) ; single = go . AddComponent < NSTSettings > ( ) ; }
Call this at the awake of other NST components to make sure that NSTSettings exists in the scene.
Call this at the awake of other NST components to make sure that NSTSettings exists in the scene .