Exemplo n.º 1
0
 void InitUserMonthly()
 {
     mUserEvent = new EntryListEvent(ReceivedUserRanking);
     NetMgr.UserMonthlyRanking(mUserEvent);
     transform.FindChild("Top").FindChild("LblTitle").GetComponent <UILabel>().
     text = UtilMgr.GetLocalText("StrMonthlyRanking");
 }
Exemplo n.º 2
0
 void InitUserDaily()
 {
     mUserEvent = new EntryListEvent(ReceivedUserRanking);
     NetMgr.UserDailyRanking(mUserEvent);
     transform.FindChild("Top").FindChild("LblTitle").GetComponent<UILabel>().
         text = UtilMgr.GetLocalText("StrDailyRanking");
 }
Exemplo n.º 3
0
    public void Init(ContestListInfo contest)
    {
        mContest = contest;

        string startTime = "";

        if (UtilMgr.IsMLB())
        {
            startTime = mContest.startTime;
        }
        else
        {
            startTime = mContest.korStartTime;
        }

        int year = int.Parse(startTime.Substring(0, 4));
        int mon  = int.Parse(startTime.Substring(4, 2));
        int day  = int.Parse(startTime.Substring(6, 2));
        int hour = int.Parse(startTime.Substring(8, 2));
        int min  = int.Parse(startTime.Substring(10, 2));
        int sec  = int.Parse(startTime.Substring(12, 2));

        mContestTime = new DateTime(year, mon, day, hour, min, sec);


        transform.localPosition = new Vector3(2000f, 2000f, 0);
        transform.gameObject.SetActive(true);
        mEntryEvent = new EntryListEvent(ReceivedEntry);
        NetMgr.EntryList(mContest.contestSeq, mEntryEvent);
    }
Exemplo n.º 4
0
    public void Init(ContestListInfo contest)
    {
        mContest = contest;

        string startTime = "";
        if(UtilMgr.IsMLB()){
            startTime = mContest.startTime;
        } else
            startTime = mContest.korStartTime;

        int year = int.Parse(startTime.Substring(0, 4));
        int mon = int.Parse(startTime.Substring(4, 2));
        int day = int.Parse(startTime.Substring(6, 2));
        int hour = int.Parse(startTime.Substring(8, 2));
        int min = int.Parse(startTime.Substring(10, 2));
        int sec = int.Parse(startTime.Substring(12, 2));
        mContestTime = new DateTime(year, mon, day, hour, min, sec);

        transform.localPosition = new Vector3(2000f, 2000f, 0);
        transform.gameObject.SetActive(true);
        mEntryEvent = new EntryListEvent(ReceivedEntry);
        NetMgr.EntryList(mContest.contestSeq, mEntryEvent);
    }