Пример #1
0
    /*---------------------------------------------------------------------*/
    /// <summary>
    /// ページを開く
    /// </summary>
    public void OpenPage()
    {
        isShow        = true;
        _ShowInfoType = eShowInfoType.PlayLog;

        // ユーザースコア情報の取得 通信
        StartCoroutine(this.RequestInfo());
        // 入力アップデート開始
        StartCoroutine(this.InputUpdate());
    }
Пример #2
0
    /// <summary>
    /// 表示情報を切り替える
    /// </summary>
    public void OnChangeButton()
    {
        _ShowInfoType = (eShowInfoType)((int)(_ShowInfoType + 1) % (int)eShowInfoType.TYPE_NUM);
        switch (_ShowInfoType)
        {
        case eShowInfoType.PlayLog:
            _RankingUI.SetActiveUI(false);
            _PlayLog.SetActiveUI(true);
            _ChangeButton.GetComponentInChildren <Text> ().text = eShowInfoType.Ranking.ToString();
            break;

        case eShowInfoType.Ranking:
            _PlayLog.SetActiveUI(false);
            _RankingUI.SetActiveUI(true);
            _ChangeButton.GetComponentInChildren <Text> ().text = eShowInfoType.PlayLog.ToString();
            break;

        default:
            break;
        }
    }