Esempio n. 1
0
 void DiagExpand(DialogueMgr.BTNS btn)
 {
     if(btn == DialogueMgr.BTNS.Btn1){
         mExpandEvent = new ExpandInvenEvent(ReceivedExpand);
         NetMgr.ExpandCardInven(mExpandEvent);
     }
 }
Esempio n. 2
0
 void DiagHandler(DialogueMgr.BTNS btn)
 {
     if(btn == DialogueMgr.BTNS.Btn1){
         mSkillEvent = new SetSkillEvent(ReceivedSet);
         NetMgr.SetSkill(transform.root.FindChild("SkillList").GetComponent<SkillList>().mCardInfo,
                         mInfo, transform.root.FindChild("SkillList").GetComponent<SkillList>().mIdx, mSkillEvent);
     }
 }
    void DiagHandler(DialogueMgr.BTNS btn)
    {
        if(btn == DialogueMgr.BTNS.Btn1){
            if(UserMgr.UserInfo.gold < 50){
                DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("StrError"), UtilMgr.GetLocalText("StrNotEnoughGold2"), DialogueMgr.DIALOGUE_TYPE.Alert, null);
                return;
            }
            mOffEvent = new SetSkillEvent(ReceivedOff);
            NetMgr.OffSkill(transform.root.FindChild("PlayerCard").GetComponent<PlayerCard>().mCardInfo, mInfo,
                            int.Parse(transform.name.Substring(transform.name.Length-1, 1)), mOffEvent);

        }
    }
Esempio n. 4
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);
 }
Esempio n. 5
0
 void CloseAttendance(DialogueMgr.BTNS btn)
 {
     DialogueMgr.DismissDialogue();
     Destroy(DialogueMgr.Instance.mAttendanceBox);
 }
Esempio n. 6
0
 void DialogueHandler(DialogueMgr.BTNS btn)
 {
     Application.Quit();
 }
Esempio n. 7
0
 void ReloadHandler(DialogueMgr.BTNS btn)
 {
     mCardEvent = new GetCardInvenEvent(ReceivedCards);
     NetMgr.GetCardInven(mCardEvent);
 }
Esempio n. 8
0
 void ReloadInven(DialogueMgr.BTNS btn)
 {
     mInvenEvent = new GetCardInvenEvent(ReceivedInven);
     NetMgr.GetCardInven(mInvenEvent);
 }
Esempio n. 9
0
 void ConnectHandlerForTcp(DialogueMgr.BTNS btn)
 {
     if(btn == DialogueMgr.BTNS.Btn1){
         socketJoinEvent();
     } else{
         //            Application.Quit();
         AutoFade.LoadLevel("SceneLogin");
     }
 }
Esempio n. 10
0
    void ConnectHandlerForHttp(DialogueMgr.BTNS btn)
    {
        if(btn == DialogueMgr.BTNS.Btn1){
            Debug.Log("ReTry");

            WWW www;
            if(mReqParam != null){
             	www = new WWW(mUrl,mReqParam);
            }else if(mForm != null){
                www = new WWW(mUrl,mForm);
            }else{
                www = new WWW(mUrl);
            }
            StartCoroutine(webAPIProcess(www, mBaseEvent, mIsLoading, mIsUpload));
            //            mWWW = null;
            //            mBaseEvent = null;
        } else{
            if (Application.loadedLevelName.Equals ("Login")) {
                Application.Quit();
            } else
                AutoFade.LoadLevel("Login");
        }
    }
Esempio n. 11
0
 void DiagSkill(DialogueMgr.BTNS btn)
 {
     UtilMgr.OnBackPressed();
     transform.root.FindChild("SkillList").GetComponent<SkillList>().Reload();
 }
Esempio n. 12
0
 void TicketHandler(DialogueMgr.BTNS btn)
 {
     if(btn == DialogueMgr.BTNS.Btn1){
         mRoot.FindChild("Profile").FindChild("Scroll View").FindChild("Btns")
             .FindChild("BtnTicket").GetComponent<BtnsShop>().OnClick();
     }
 }
Esempio n. 13
0
 public void DialogClickHandler(DialogueMgr.BTNS btn)
 {
     if(btn == DialogueMgr.BTNS.Btn1){
         UtilMgr.Quit();
     }
 }
Esempio n. 14
0
 void DialogPower(DialogueMgr.BTNS btn)
 {
     if(btn == DialogueMgr.BTNS.Btn1){
         if(UserMgr.UserInfo.gold < mBingoResponse.data.bingo.powerTimePrice){
             DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("StrPowerChance1"), UtilMgr.GetLocalText("StrNotEnoughGold2")
                           , DialogueMgr.DIALOGUE_TYPE.Alert, null);
         } else{
             mPowerEvent = new CallBingoEvent(ReceivedPower);
             NetMgr.PowerMax(UserMgr.eventJoined.gameId, mBingoResponse.data.bingo.bingoId, mPowerEvent);
         }
     }
 }
Esempio n. 15
0
 void BingoDialogue(DialogueMgr.BTNS btn)
 {
     if(mCallResponse.data.userBlackBingoReward > 0){
         UserMgr.UserInfo.gold += mCallResponse.data.userBlackBingoReward;
         DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("LblBingo"),
                                  string.Format(UtilMgr.GetLocalText("StrRewardBlackBingo")
                       , mCallResponse.data.userBlackBingoReward)
                                  , DialogueMgr.DIALOGUE_TYPE.Alert, null);
     }
 }
 void JoinComplete(DialogueMgr.BTNS btn)
 {
     AutoFade.LoadLevel("Login");
 }