예제 #1
0
    public void MainMenuButton()
    {
        MKUIData uiDataGO = GameObject.FindGameObjectWithTag("UIData").GetComponent <MKUIData>();

        uiDataGO.GetUIGO("rankingUI").SetActive(false);
        uiDataGO.GetUIGO("menupanelgoUI").SetActive(true);
        uiDataGO.GetUIGO("titleUI").SetActive(true);
    }
예제 #2
0
    public void RankingButton()
    {
        MKUIData uiDataGO = GameObject.FindGameObjectWithTag("UIData").GetComponent <MKUIData>();

        MKGame.Instance.GetRankingManager().FillRankingMenuData();
        uiDataGO.GetUIGO("rankingUI").SetActive(true);
        uiDataGO.GetUIGO("menupanelgoUI").SetActive(false);
        uiDataGO.GetUIGO("titleUI").SetActive(false);
    }
예제 #3
0
 public void FillRankingMenuData()
 {
     PopulateRankingData();
     SortRankingData();
     if (m_scores != null && m_scores.scores.Count != 0)
     {
         MKUIData      uiData        = GameObject.FindGameObjectWithTag("UIData").GetComponent <MKUIData>();
         MKMenuRanking menuRankingCO = uiData.GetUIGO("rankingUI").GetComponent <MKMenuRanking>();
         for (int i = 0; i <= m_scores.scores.Count - 1; i++)
         {
             MKScoreVisual scoreCO = menuRankingCO.scores[i].GetComponent <MKScoreVisual>();
             scoreCO.Player1.GetComponent <Text>().text = m_scores.scores[i].playerOne;
             scoreCO.Player2.GetComponent <Text>().text = m_scores.scores[i].playerTwo;
             scoreCO.Score.GetComponent <Text>().text   = m_scores.scores[i].score.ToString();
         }
     }
 }