void Update()
{
if(GameController.Inst.Platform == Platform.Web)
{
if(GameController.View.Game == GameController.Inst.ECurrentView)
{
_ExitButton.gameObject.SetActive(false);
_InformationButton.gameObject.SetActive(true);
}
else if(_InformationButton.gameObject.activeSelf)
{
_ExitButton.gameObject.SetActive(true);
_InformationButton.gameObject.SetActive(false);
}
}
else
{
if (Input.GetKeyDown(KeyCode.Escape) && GameController.View.Quit != GameController.Inst.ECurrentView)
{
GameController.Inst.SwitchToView(GameController.View.Quit);
_QuitView.GetDisplayTransition().Begin();
}
if(GameController.View.Info == GameController.Inst.ECurrentView
||GameController.View.Intro == GameController.Inst.ECurrentView)
{
_Logo.SetActive(false);
_ExitButton.gameObject.SetActive(true);
_InformationButton.gameObject.SetActive(false);
_LeaderboardsButton.gameObject.SetActive(false);
}
else if(!(GameController.View.Quit == GameController.Inst.ECurrentView && GameController.View.Info == GameController.Inst.EPrevView))
{
_Logo.SetActive(true);
_ExitButton.gameObject.SetActive(false);
_InformationButton.gameObject.SetActive(true);
_LeaderboardsButton.gameObject.SetActive(true);
}
}
}