Esempio n. 1
0
	public void PopupInTimer(JViewController window, float seconds)
	{
		timerWindow = window;
		timerWindow.gameObject.SetActive(true);

		this.Invoke("ResetTimerWindow", seconds);
	}
Esempio n. 2
0
	public JViewController PushView(JViewController vc)
	{
		if (vc.isPopup)
		{
			if (blockWindow != null)
				blockWindow.SetActive(true);
		}
		else
		{
			if (current != null)
			{
				current.OnPause();
				current.gameObject.SetActive(false);
			}
		}
		//previous = current;
		current = vc;
		current.gameObject.SetActive(true);

		switch (vc.entryDirection)
		{
		case JActivityDirection.kCenter:
			break;
		}

		vc.OnResume();
		viewQueue.Add(vc);

		return vc;
	}
Esempio n. 3
0
	public void PopView()
	{
		JViewController current = viewQueue[viewQueue.Count - 1];
		current.OnPause();
		current.gameObject.SetActive(false);

		JViewController previous = viewQueue.Count >= 2 ? viewQueue[viewQueue.Count - 2] : null;

		if (current.isPopup)
		{
			if (blockWindow != null)
				blockWindow.SetActive(false);
		}
		else
		{
			previous.OnResume();
			previous.gameObject.SetActive(true);
		}

		this.current = previous;

		viewQueue.RemoveAt(viewQueue.Count - 1);
	}
Esempio n. 4
0
	void ResetTimerWindow()
	{
		timerWindow.gameObject.SetActive(false);
		timerWindow = null;
	}