BeardedManStudios.Network.Unity.MainThreadManager.Awake C# (CSharp) Méthode

Awake() private méthode

private Awake ( ) : void
Résultat 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);
		}