Exemplo n.º 1
0
	void Awake()
	{
		if(instance == null)
		{
			instance = this;
		}
		else
		{
			Destroy(gameObject);
		}
		Cursor.visible = true;
	}
Exemplo n.º 2
0
 private void Awake()
 {
     menuScript = FindObjectOfType <ClickToPlay>();
     pushPull   = FindObjectOfType <PushPullCycle>();
 }