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); }
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); } }