BeardedManStudios.Network.Unity.MainThreadManager.Awake C# (CSharp) Метод

Awake() приватный Метод

private Awake ( ) : void
Результат void
		private void Awake()
		{
			// If an instance already exists then delete this copy
			if (!ReferenceEquals(Instance, null))
			{
				Destroy(gameObject);
				return;
			}

			// Assign the static reference to this object
			Instance = this;

			// This object should move through scenes
			DontDestroyOnLoad(gameObject);
		}