void DiagExpand(DialogueMgr.BTNS btn) { if(btn == DialogueMgr.BTNS.Btn1){ mExpandEvent = new ExpandInvenEvent(ReceivedExpand); NetMgr.ExpandCardInven(mExpandEvent); } }
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); } }
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); }
void CloseAttendance(DialogueMgr.BTNS btn) { DialogueMgr.DismissDialogue(); Destroy(DialogueMgr.Instance.mAttendanceBox); }
void DialogueHandler(DialogueMgr.BTNS btn) { Application.Quit(); }
void ReloadHandler(DialogueMgr.BTNS btn) { mCardEvent = new GetCardInvenEvent(ReceivedCards); NetMgr.GetCardInven(mCardEvent); }
void ReloadInven(DialogueMgr.BTNS btn) { mInvenEvent = new GetCardInvenEvent(ReceivedInven); NetMgr.GetCardInven(mInvenEvent); }
void ConnectHandlerForTcp(DialogueMgr.BTNS btn) { if(btn == DialogueMgr.BTNS.Btn1){ socketJoinEvent(); } else{ // Application.Quit(); AutoFade.LoadLevel("SceneLogin"); } }
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"); } }
void DiagSkill(DialogueMgr.BTNS btn) { UtilMgr.OnBackPressed(); transform.root.FindChild("SkillList").GetComponent<SkillList>().Reload(); }
void TicketHandler(DialogueMgr.BTNS btn) { if(btn == DialogueMgr.BTNS.Btn1){ mRoot.FindChild("Profile").FindChild("Scroll View").FindChild("Btns") .FindChild("BtnTicket").GetComponent<BtnsShop>().OnClick(); } }
public void DialogClickHandler(DialogueMgr.BTNS btn) { if(btn == DialogueMgr.BTNS.Btn1){ UtilMgr.Quit(); } }
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); } } }
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"); }