Ejemplo n.º 1
0
    public void GoToStatistics( )
    {
        PanelStats.SetActive(true);
        PanelComments.SetActive(false);

        BtnContinue.transform.GetChild(0).GetComponent <Text>( ).text = "Continue";
        BtnContinue.gameObject.SetActive(true);
        BtnPrevious.gameObject.SetActive(false);
    }
Ejemplo n.º 2
0
    public void GoToComments( )
    {
        if (!PanelComments.activeInHierarchy)
        {
            PanelStats.SetActive(false);
            PanelComments.SetActive(true);

            BtnContinue.transform.GetChild(0).GetComponent <Text>( ).text = "Close";
            BtnContinue.gameObject.SetActive(true);
            BtnPrevious.gameObject.SetActive(true);
        }
        else
        {
            GameManager.Instance.CurrentGame = default(Game);
            GameObject.Destroy(gameObject);
        }
    }