MixpanelController.Awake C# (CSharp) Метод

Awake() публичный Метод

public Awake ( ) : void
Результат void
	void Awake()
	{
		// singleton setup - don't destroy this when loading
		if(instance == null)
		{
			instance = this;
			DontDestroyOnLoad(this.gameObject);
		
			// Subscribes to all events
			LinkToEvents();
		}
		else
		{
			GameObject.Destroy(this.gameObject);
		}

	}