Ejemplo n.º 1
0
    public void OnClick()
    {
        int featured = 0;
        int type     = 0;

        mContestEvent = new ContestListEvent(new EventDelegate(ReceivedContest));
        Com.LOOG("DFSBtns-OnClick", name);

        if (transform.parent.name.Equals("Special_League"))
        {
            featured = ContestListInfo.FEATURED_SPECIAL;
            type     = ContestListInfo.TYPE_ALL;
            mTitle   = UtilMgr.GetLocalText("StrSpecialLeague");
        }
        else if (transform.parent.name.Equals("50"))
        {
            featured = ContestListInfo.TYPE_ALL;
            type     = ContestListInfo.TYPE_FIFTY;
            mTitle   = UtilMgr.GetLocalText("Str50vs50");
        }
        else if (transform.parent.name.Equals("Ranking"))
        {
            featured = ContestListInfo.TYPE_ALL;
            type     = ContestListInfo.TYPE_RANK;
            mTitle   = UtilMgr.GetLocalText("StrRanking");
        }

        NetMgr.GetContestList(featured, type, mContestEvent);
    }
Ejemplo n.º 2
0
    void RegComplete(DialogueMgr.BTNS btn)
    {
        mContestEvent = new ContestListEvent(new EventDelegate(ReceivedContest));
        string title = transform.root.FindChild("Contests").FindChild("Top")
                       .FindChild("LblRanking").GetComponent <UILabel>().text;
        int featured = 0;
        int type     = 0;

        if (title.Equals(UtilMgr.GetLocalText("StrSpecialLeague")))
        {
            featured = ContestListInfo.FEATURED_SPECIAL;
            type     = ContestListInfo.TYPE_ALL;
        }
        else if (title.Equals(UtilMgr.GetLocalText("Str50vs50")))
        {
            featured = ContestListInfo.TYPE_ALL;
            type     = ContestListInfo.TYPE_FIFTY;
        }
        else if (title.Equals(UtilMgr.GetLocalText("StrRanking")))
        {
            featured = ContestListInfo.TYPE_ALL;
            type     = ContestListInfo.TYPE_RANK;
        }
        NetMgr.GetContestList(featured, type, mContestEvent);
    }
Ejemplo n.º 3
0
 public void ResetData()
 {
     try{
         ContestEvent = new ContestListEvent(new EventDelegate(this, "GetContest"));
         NetMgr.GetContestList(ContestEvent);
     }catch {
         HistoryEvent = new HistoryListEvent(new EventDelegate(this, "GetHistory"));
         NetMgr.GetHistoryList(HistoryEvent);
     }
     //    GetContest ();
 }
Ejemplo n.º 4
0
    public void GotCardInven()
    {
        Debug.Log("GotCardInven");
        UserMgr.CardInvenInfo = mCardEvent.Response.data;

        UtilMgr.RemoveAllBackEvents();
        //        AutoFade.LoadLevel ("SceneTeamHome", 0f, 1f);
        try{
            ContestEvent = new ContestListEvent(new EventDelegate(this, "GetContest"));
            NetMgr.GetContestList(ContestEvent);
        }catch {
            HistoryEvent = new HistoryListEvent(new EventDelegate(this, "GetHistory"));
            NetMgr.GetHistoryList(HistoryEvent);
        }
        //    GetContest ();
    }
Ejemplo n.º 5
0
 void RegComplete(DialogueMgr.BTNS btn)
 {
     mContestEvent = new ContestListEvent(new EventDelegate(ReceivedContest));
     string title = transform.root.FindChild("Contests").FindChild("Top")
         .FindChild("LblRanking").GetComponent<UILabel>().text;
     int featured = 0;
     int type = 0;
     if(title.Equals(UtilMgr.GetLocalText("StrSpecialLeague"))){
         featured = ContestListInfo.FEATURED_SPECIAL;
         type = ContestListInfo.TYPE_ALL;
     } else if(title.Equals(UtilMgr.GetLocalText("Str50vs50"))){
         featured = ContestListInfo.TYPE_ALL;
         type = ContestListInfo.TYPE_FIFTY;
     } else if(title.Equals(UtilMgr.GetLocalText("StrRanking"))){
         featured = ContestListInfo.TYPE_ALL;
         type = ContestListInfo.TYPE_RANK;
     }
     NetMgr.GetContestList(featured, type, mContestEvent);
 }
Ejemplo n.º 6
0
    void ResetNCData()
    {
        //기존 UserMgr.ContestList 새로고침
        try {
            Debug.Log("CDE.Response.data.Count : " + CDE.Response.data.Count);
            Debug.Log("UserMgr.ContestList.Count : " + UserMgr.ContestList.Count);
            if (UserMgr.ContestList != null)
            {
                if (UserMgr.ContestList.Count != CDE.Response.data.Count)
                {
                    CLE = new ContestListEvent(new EventDelegate(this, "getNCData"));
                    NetMgr.GetContestList(CLE);
                }
                else
                {
                    GameObject Count = transform.FindChild("Nomal Contest").FindChild("Scroll View2").gameObject;
                    for (int a = 0; a < CDE.Response.data.Count; a++)
                    {
                        for (int i = 0; i < UserMgr.ContestList.Count; i++)
                        {
                            if (UserMgr.ContestList[i].contestSeq == CDE.Response.data[a].contestSeq)
                            {
                                UserMgr.ContestList [i].aTeamScore  = CDE.Response.data [a].aTeamScore;
                                UserMgr.ContestList [i].hTeamScore  = CDE.Response.data [a].hTeamScore;
                                UserMgr.ContestList [i].totalPreset = CDE.Response.data [a].totalPreset;
                            }
                        }
                    }

                    //ResetList ();
                }
            }

            StartCoroutine(Rolliing());
        } catch {
            Debug.Log("ArgumentOutOfRangeException: Argument is out of range.");
        }
    }
Ejemplo n.º 7
0
    public void OnClick()
    {
        int featured = 0;
        int type = 0;
        mContestEvent = new ContestListEvent(new EventDelegate(ReceivedContest));
        Com.LOOG("DFSBtns-OnClick" , name);

        if(transform.parent.name.Equals("Special_League")){
            featured = ContestListInfo.FEATURED_SPECIAL;
            type = ContestListInfo.TYPE_ALL;
            mTitle = UtilMgr.GetLocalText("StrSpecialLeague");
        } else if(transform.parent.name.Equals("50")){
            featured = ContestListInfo.TYPE_ALL;
            type = ContestListInfo.TYPE_FIFTY;
            mTitle = UtilMgr.GetLocalText("Str50vs50");
        } else if(transform.parent.name.Equals("Ranking")){
            featured = ContestListInfo.TYPE_ALL;
            type = ContestListInfo.TYPE_RANK;
            mTitle = UtilMgr.GetLocalText("StrRanking");
        }

        NetMgr.GetContestList(featured, type, mContestEvent);
    }