public void Btn_Fun_MixItem_BuyOK() { dicMenuList ["CenterCircle"].SetActive(true); WasPurchaseItem aObj = new WasPurchaseItem() { User = Ag.mySelf, itemType = "CombiAdvt", itemTypeId = CombiItemName, //"FuncBackNumEdit : ", ea = 1, //buyType = BuyType }; aObj.messageAction = (int pInt) => { dicMenuList ["CenterCircle"].SetActive(false); switch (pInt) // 0:성공, -1:캐쉬 부족, 1:잘못된 단위 { case 0: ItemInfo(); //dicMenuList ["alert"].SetActive (true); MenuCommonOpen("Ui_Popup", "buy_item", false); Ag.LogString(" result : Success "); break; case -1: Debug.Log("MixItem"); if (CombiItemName == "CardCombiGrade") { MenuCommonOpen("Ui_popup", "havenotcash", true); } if (CombiItemName == "CardCombiAdvtHigh") { MenuCommonOpen("Ui_popup", "havenotcash", true); } if (CombiItemName == "CardCombiAdvt") { MenuCommonOpen("Ui_popup", "havenotpoint", true); } break; } // Ag.LogString (" result : >>> " + pInt.LogWith ("result is")); }; if (CombiItemName == "CardCombiGrade" || CombiItemName == "CardCombiAdvtHigh") { //PopupAfterUserCash(); MenuCommonOpen("Ui_Popup", "buy_item2", false); } }
/// <summary> /// BuyItem /// </summary> /// void BuyItem() { int Ea = 1; if (ItemTypeId == "BlueDrink" || ItemTypeId == "RedDrink" || ItemTypeId == "GreenDrink") { //Debug.Log ("DRinkEa" + DrinkEA); Ea = DrinkEA; } dicMenuList ["CenterCircle"].SetActive(true); MenuCommonOpen("Ui_Popup", "buy_item", false); WasPurchaseItem aObj = new WasPurchaseItem() { User = Ag.mySelf, itemType = ItemType, itemTypeId = ItemTypeId, ea = Ea, //buyType = BuyType }; aObj.messageAction = (int pInt) => { dicMenuList ["CenterCircle"].SetActive(false); switch (pInt) { case 0: if (ItemTypeId == "EndMessage01") { MessageItemInfo(); } else { ItemInfo(); LabelSetting(false, "", "", ""); } Ag.LogIntenseWord(" result : Success "); break; case -1: if (ItemTypeId == "EndMessage01" || ItemTypeId == "CeremonySkill03" || ItemTypeId == "CeremonySkill04" || ItemTypeId == "CeremonySkill05") { MenuCommonOpen("Ui_popup", "havenotcash", true); } else { MenuCommonOpen("Ui_popup", "havenotpoint", true); } dicMenuList.Add("KickOffpopup", mRscrcMan.FindChild(dicMenuList ["Ui_kickoff"], "popup", false)); dicMenuList.Add("popup_BuyItem", mRscrcMan.FindChild(dicMenuList ["Ui_kickoff"], "popup/buy_item", false)); break; } }; if (ItemType == "CEREMONY" || ItemType == "MESSAGE") { string[] arrayItemTypeid = new string[] { "EndMessage01", "CeremonySkill03", "CeremonySkill04", "CeremonySkill05" }; for (int i = 0; i < arrayItemTypeid.Length; i++) { if (ItemTypeId == arrayItemTypeid [i]) { //PopupAfterUserCash (); } } } }
void Btn_Fun_GloveBuyOk() { dicMenuList ["popup_buyglove"].SetActive(false); dicMenuList ["CenterCircle"].SetActive(true); if (GloveFree) { WasPurchaseItem bObj = new WasPurchaseItem() { User = Ag.mySelf, itemType = "GloveFreeTime", itemTypeId = GloveTypeId, ea = 1, //buyType = 0 }; bObj.messageAction = (int pInt) => { dicMenuList ["CenterCircle"].SetActive(false); switch (pInt) // 0:성공 { case 0: //ItemInfo (); Userinfo(); //PopupAfterUserCash(); break; case -1: MenuCommonOpen("Ui_popup", "havenotcash", true); //Debug.Log ("NO MONEY"); break; } Ag.LogString(" result : >>> " + pInt.LogWith("result is")); }; return; } if (GloveTypeId == "FuncHeartMax") { WasHeartFillMax aObj = new WasHeartFillMax() { User = Ag.mySelf }; aObj.messageAction = (int pInt) => { dicMenuList ["CenterCircle"].SetActive(false); switch (pInt) // 0:성공 { case 0: Ag.mySelf.HeartSetMax(); break; case -1: MenuCommonOpen("Ui_popup", "havenotcash", true); break; } aObj = null; }; return; } WasPurchaseItem cObj = new WasPurchaseItem() { User = Ag.mySelf, itemType = "HEARTUPGRADE", itemTypeId = GloveTypeId, //"HeartLimitUp", ea = 1, }; cObj.messageAction = (int pInt) => { dicMenuList ["CenterCircle"].SetActive(false); switch (pInt) // 0:성공 { case 0: ItemInfo(); // break; case -1: MenuCommonOpen("Ui_popup", "havenotcash", true); break; } }; }
public void SetColumnC() { int colN = 0, colEA; muiCol++; muiRow = 0; // _////////////////////////////////////////////////_ _///////////////////////_ _____ *** _____ column 3 _____ Rect rect004 = myGUI.GetRect(muiCol, muiRow++); int h, m, s; // 타이머 테스트 timerObj.TimeLeft(out h, out m, out s); GUI.Label(myGUI.DivideRect(rect004, 3, 0), h + ":" + m + ":" + s + " " + timerObj.DidTimerFinished() + " , " + timerObj.SecondsLeft()); // _////////////////////////////////////////////////_ _///////////////////////_ _____ Go to _____ Node Screen _____ if (GUI.Button(myGUI.DivideRect(rect004, 3, 2), "Node >")) { IsNodeScreen = true; } colN = 0; Rect rectPlugin = myGUI.GetRect(muiCol, muiRow++); // if (GUI.Button (myGUI.DivideRect (rectPlugin, 3, colN++), "JailBrk")) { // pluginObj.CheckRootingJailbreak (); // } // if (GUI.Button (myGUI.DivideRect (rectPlugin, 3, 1), "Percent")) { // AgUtil.LinearPercentVari (100, 10000, 3800); // // } string msggg = ""; #if UNITY_IPHONE if (NotificationServices.deviceToken == null) { msggg = "null"; } else { msggg = " Token "; } #endif if (GUI.Button(myGUI.DivideRect(rectPlugin, 3, colN++), msggg)) { JCE.JceNotiTokenSetting(myUser); } if (GUI.Button(myGUI.DivideRect(rectPlugin, 3, colN++), "Noti " + Ag.arrNoti.Count)) { // arrNoti = NotificationServices.remoteNotifications; // for (int k = 0; k < arrNoti.Length; k++) { // RemoteNotification curNoti = arrNoti [k]; // Ag.LogString (" Notification :: alertBody > " + curNoti.alertBody + " userInfo.Count > " + curNoti.userInfo.Count + // " badgeNum > " + curNoti.applicationIconBadgeNumber); // // Ag.arrNoti.Add (new AmNotification () { msg = curNoti.alertBody }); // } } if (GUI.Button(myGUI.DivideRect(rectPlugin, 3, colN++), "SendNoti")) { JCE.JceNotiSendMessage(myUser, " 안드로이드 iOS .. .. "); } // _////////////////////////////////////////////////_ _///////////////////////_ _____ SingleTry _____ Test _____ Rect rect005 = myGUI.GetRect(muiCol, muiRow++); colN = 0; colEA = 5; if (GUI.Button(myGUI.DivideRect(rect005, colEA, colN++), "Try A")) { myUser.ShowSingleTry(false).ToString().HtLog(); } if (GUI.Button(myGUI.DivideRect(rect005, colEA, colN++), "Confirm")) { myUser.ConfirmSingleTry(false); } if (GUI.Button(myGUI.DivideRect(rect005, colEA, colN++), "Try S")) { myUser.ShowSingleTry(true).ToString().HtLog(); } if (GUI.Button(myGUI.DivideRect(rect005, colEA, colN++), "Confirm")) { myUser.ConfirmSingleTry(true); } if (GUI.Button(myGUI.DivideRect(rect005, colEA, colN++), "Init")) { myUser.InitSingleTry(); } Rect rect006 = myGUI.GetRect(muiCol, muiRow++); colN = 0; colEA = 5; int mm, ss; myUser.HeartCoolTime(out mm, out ss); mm = myUser.HeartCoolTime(); // % if (GUI.Button(myGUI.DivideRect(rect006, colEA, colN++), "H " + mm + " %, S " + ss)) { myUser.HeartCoolTimeNewGameStarted(); //myUser.HeartSetMax (); // Set Maximum } if (GUI.Button(myGUI.DivideRect(rect006, colEA, colN++), " SetMax")) { myUser.HeartSetMax(); } if (GUI.Button(myGUI.DivideRect(rect006, colEA, colN++), " CurTime")) { (" Remain Sec :: " + myUser.CurrentRemainSec()).HtLog(); } // Scout // myUser.ScoutCoolTimeRemain (out mm, out ss); // if (GUI.Button (myGUI.DivideRect (rect006, colEA, colN++), "S " + mm + ":" + ss)) { // myUser.CoolTimeScoutUse (); // } myUser.ContWinCoolTimeRemain(out mm, out ss); if (GUI.Button(myGUI.DivideRect(rect006, colEA, colN++), "CW " + mm + ":" + ss)) { myUser.CoolTimeChooseOneMoreGameWin(); myUser.ContWinCoolTimeRemainPercent().ToString().HtLog(); // + or - ... } Rect rect007 = myGUI.GetRect(muiCol, muiRow++); colN = 0; colEA = 4; if (GUI.Button(myGUI.DivideRect(rect007, colEA, colN++), "PopupIAPL")) { WasPopupStoreIAPurchaseList aObj = new WasPopupStoreIAPurchaseList() { User = myUser }; aObj.messageAction = (int pInt) => { aObj = null; }; } if (GUI.Button(myGUI.DivideRect(rect007, colEA, colN++), "PopupL")) { WasPopupStoreList aObj = new WasPopupStoreList() { User = myUser }; aObj.messageAction = (int pInt) => { aObj = null; }; } if (GUI.Button(myGUI.DivideRect(rect007, colEA, colN++), "Popup")) { WasPopupPurchase aObj = new WasPopupPurchase() { User = myUser, PopupCode = "DiscHeartDay" }; aObj.messageAction = (int pInt) => { aObj = null; }; aObj = new WasPopupPurchase() { User = myUser, PopupCode = "DiscHeartWeek" }; aObj.messageAction = (int pInt) => { aObj = null; }; aObj = new WasPopupPurchase() { User = myUser, PopupCode = "DiscHeartMonth" }; aObj.messageAction = (int pInt) => { aObj = null; }; } if (GUI.Button(myGUI.DivideRect(rect007, colEA, colN++), "PopPurchase")) { WasPopupPurchase aObj = new WasPopupPurchase() { User = myUser, PopupCode = "DiscGlove" }; aObj.messageAction = (int pInt) => { aObj = null; }; } Rect rctNoti = myGUI.GetRect(muiCol, muiRow++); colN = 0; if (GUI.Button(myGUI.DivideRect(rctNoti, 3, colN++), "Logout")) { JCE.JceNotiMessage(myUser, "logout"); // logout, alarmOn, alarmOff } if (GUI.Button(myGUI.DivideRect(rctNoti, 3, colN++), "Alm : On")) { JCE.JceNotiMessage(myUser, "alarmOn"); // logout, alarmOn, alarmOff } if (GUI.Button(myGUI.DivideRect(rctNoti, 3, colN++), "Alm : Off")) { JCE.JceNotiMessage(myUser, "alarmOff"); // logout, alarmOn, alarmOff } Rect joy1 = myGUI.GetRect(muiCol, muiRow++); colN = 0; colEA = 4; if (GUI.Button(myGUI.DivideRect(joy1, colEA, colN++), "JCE")) // //JoyLogin jObj = new JoyLogin (); { JCE.JceUrgentNoticePT(myUser); } if (GUI.Button(myGUI.DivideRect(joy1, colEA, colN++), "Img")) // { JCE.JceImageNotice(myUser); } if (GUI.Button(myGUI.DivideRect(joy1, colEA, colN++), "Text")) // //JCE.JceEventBanner (myUser); { JCE.JceTextNoticePT(myUser); } if (GUI.Button(myGUI.DivideRect(joy1, colEA, colN++), "Event")) // //JCE.JceEventBanner (myUser); { JCE.JceEventBanner(myUser); } // if (GUI.Button (myGUI.DivideRect (joy1, colEA, colN++), "Test")) { // // int wid1, wid2; // WasCard was = myUser.arrCard [2].WAS; // myUser.arrCard [2].GetSkillWidth (false, out wid1, out wid2); // (" Wid1, wid2 :: " + was.condition + " " + was.skill [0] + " / " + was.skill [1] + " >>> " + wid1 + " / " + wid2).HtLog (); // myUser.arrCard [2].GetSkillWidth (true, out wid1, out wid2); // (" drink on Wid1, wid2 :: " + wid1 + " " + wid2).HtLog (); // // } // _////////////////////////////////////////////////_ _____ Code Only _____ Packet Send _____ Rect joy2 = myGUI.GetRect(muiCol, muiRow++); colN = 0; colEA = 3; packetNum = int.Parse(GUI.TextField(myGUI.DivideRect(joy2, colEA, colN++), packetNum.ToString(), 5)); if (GUI.Button(myGUI.DivideRect(joy2, colEA, colN++), "Send")) // { WasCodeOnlyProtocol aObj = new WasCodeOnlyProtocol() { User = Ag.mySelf, protoCode = packetNum }; aObj.messageAction = (int pInt) => { aObj = null; }; } if (GUI.Button(myGUI.DivideRect(joy2, colEA, colN++), "TEST")) // { WasPurchaseItem aObj = new WasPurchaseItem() { User = myUser, itemType = "HEARTUPGRADE", itemTypeId = "HeartSpeedUp", //"HeartLimitUp", ea = 1, }; aObj.messageAction = (int pInt) => { aObj = null; }; // WasHeartFillMax aObj = new WasHeartFillMax () { User = myUser }; // aObj.messageAction = (int pInt) => { // aObj = null; // }; } Rect corot = myGUI.GetRect(muiCol, muiRow++); colN = 0; colEA = 4; if (GUI.Button(myGUI.DivideRect(corot, colEA, colN++), "Corout")) // { StartCoroutine("SomeCrtine"); } if (GUI.Button(myGUI.DivideRect(corot, colEA, colN++), "End")) // { StopCoroutine("SomeCrtine"); } #if UNITY_IPHONE // _////////////////////////////////////////////////_ _____ Purchase _____ IAP _____ string iapMsg = "N : " + AgStt.mIAP.arrProduct.Count + " Psble : " + AgStt.mIAP.CanMakePayment(); GUI.Label(myGUI.GetRect(muiCol, muiRow++), iapMsg); Rect iap1 = myGUI.GetRect(muiCol, muiRow++); int colNum = 3; int col = 0; if (GUI.Button(myGUI.DivideRect(iap1, colNum, col++), "IAP:Init")) // { AgStt.mIAP.ProductRequest(); } if (GUI.Button(myGUI.DivideRect(iap1, colNum, col++), "cash0030")) // { AgStt.mIAP.PurchaseProduct("com.appsgraphy.psykickbattlekakao.cash0030"); } #endif // _////////////////////////////////////////////////_ _____ Code _____ Etc Test _____ Rect joy9 = myGUI.GetRect(muiCol, muiRow++); colN = 0; colEA = 3; if (GUI.Button(myGUI.DivideRect(joy9, colEA, colN++), " SetNow ")) { testDT = DateTime.Now; Ag.LogIntenseWord(" Now is " + testDT + " Ag. Now () :: " + Ag.Now()); Ag.LogIntenseWord(" Diff is " + (testDT - Ag.Now()).TotalSeconds); } if (GUI.Button(myGUI.DivideRect(joy9, colEA, colN++), " Time ")) { Ag.LogIntenseWord(" Total Seconds ... " + Ag.TotalSecondsHavePassedInSeoulSince(testDT)); } }
public void SetColumnA() { muiCol = 0; muiRow = 0; int colN = 0, colEA; GUI.Label(myGUI.GetRect(muiCol, muiRow++), myUser.WAS.KkoID + " " + myUser.WAS.League); // _////////////////////////////////////////////////_ _____ DivideRect _____ Regist _____ Rect curRegis = myGUI.GetRect(muiCol, muiRow++); chkTeamName = GUI.TextField(myGUI.DivideRect(curRegis, 3, 0), chkTeamName, 15); colEA = 5; colN = 2; if (GUI.Button(myGUI.DivideRect(curRegis, colEA, colN++), "Chk Team")) { WasTeamCheck aObj = new WasTeamCheck() { ID = myUser.WAS.KkoID, TgtName = chkTeamName }; aObj.messageAction = (int pInt) => { }; } if (GUI.Button(myGUI.DivideRect(curRegis, colEA, colN++), "Reg")) { myUser.WAS.TeamName = chkTeamName; WasRegist aObj = new WasRegist() { User = myUser }; aObj.messageAction = (int pInt) => { }; } if (GUI.Button(myGUI.DivideRect(curRegis, colEA, colN++), "S. Ver")) { WasServerVersion aObj = new WasServerVersion() { User = myUser }; aObj.messageAction = (int pInt) => { aObj = null; }; } // if (GUI.Button (myGUI.DivideRect (curRegis, colEA, colN++), "SvrVer")) { // WasServerVersion aObj = new WasServerVersion () { User = myUser }; // //AgStt.GoToLoginAfterRegist = false; // aObj.messageAction = (int pInt) => { // }; // } // if (GUI.Button (myGUI.DivideRect (curRegis, colEA, colN++), "UnRgst")) { // WasUnRegist aObj = new WasUnRegist () { User = myUser }; // //AgStt.GoToLoginAfterRegist = false; // aObj.messageAction = (int pInt) => { // }; // } // _////////////////////////////////////////////////_ _____ DivideRect _____ Login 2 _____ Rect curLogin = myGUI.GetRect(muiCol, muiRow++); colN = 0; colEA = 3; if (GUI.Button(myGUI.DivideRect(curLogin, colEA, colN++), "Login")) { WasLogin aObj = new WasLogin() { User = myUser, osVer = "1.1" }; aObj.messageAction = (int pInt) => { Ag.LogIntenseWord(" Result :: " + pInt); if (pInt == 0) { WasUserInfo bObj = new WasUserInfo() { User = myUser, flag = 1 }; bObj.messageAction = (int pInt2) => { WasItemPrice cObj = new WasItemPrice() { User = myUser, DiscountOnly = false }; cObj.messageAction = (int pInt3) => { }; }; } }; } if (GUI.Button(myGUI.DivideRect(curLogin, colEA, colN++), "U:Info:f0")) { WasUserInfo aObj = new WasUserInfo() { User = myUser, flag = 0 }; aObj.messageAction = (int pInt) => { aObj = null; }; } if (GUI.Button(myGUI.DivideRect(curLogin, colEA, colN++), "Review")) { WasReview aObj = new WasReview() { User = myUser }; aObj.messageAction = (int pInt) => { }; } // _////////////////////////////////////////////////_ _____ DivideRect _____ Login 2 _____ Rect curRank = myGUI.GetRect(muiCol, muiRow++); colN = 0; colEA = 3; if (GUI.Button(myGUI.DivideRect(curRank, colEA, colN++), "Friend Rank")) { WasFriendRank aObj = new WasFriendRank() { User = myUser }; aObj.arrFriendIDs.Add("91278098233517152"); aObj.arrFriendIDs.Add("88214690633939121"); aObj.arrFriendIDs.Add("88712330645978192"); aObj.arrFriendIDs.Add("88159078716546208"); aObj.arrFriendIDs.Add("88159078716500000"); aObj.messageAction = (int pInt) => { }; } if (GUI.Button(myGUI.DivideRect(curRank, colEA, colN++), "Itm:Pr")) { WasItemPrice aObj = new WasItemPrice() { User = myUser, DiscountOnly = false }; aObj.messageAction = (int pInt) => { }; } if (GUI.Button(myGUI.DivideRect(curRank, colEA, colN++), "EvntList")) { WasEventList aObj = new WasEventList() { User = myUser }; aObj.messageAction = (int pInt) => { }; } GUI.Label(myGUI.GetRect(muiCol, muiRow++), " C/C/G : " + myUser.mCash1 + " _ " + myUser.mCash2 + " _ " + myUser.mGold); // _////////////////////////////////////////////////_ _____ DivideRect _____ Purchase 5 _____ Rect curR = myGUI.GetRect(muiCol, muiRow++); colEA = 4; colN = 0; if (GUI.Button(myGUI.DivideRect(curR, colEA, colN++), "Free")) // Purchase { WasPurchaseItem aObj = new WasPurchaseItem() { User = myUser, itemType = "GloveFreeTime", itemTypeId = "GloveFreeDay",// "GloveFreeMonth", ea = 1, }; aObj.messageAction = (int pInt) => { }; } if (GUI.Button(myGUI.DivideRect(curR, colEA, colN++), "Ticket")) { WasPurchaseItem aObj = new WasPurchaseItem() { User = myUser, itemType = "TICKET", itemTypeId = "TicketNormal", ea = 1 }; aObj.messageAction = (int pInt) => { Ag.LogString(" result : >>> " + pInt.LogWith("result is")); }; } if (GUI.Button(myGUI.DivideRect(curR, colEA, colN++), "Drink")) // Purchase { WasPurchaseItem aObj = new WasPurchaseItem() { User = myUser, itemType = "DRINK", itemTypeId = "TeamBlueDrink", // "BlueDrink", // "GreenDrink", ea = 1 }; aObj.messageAction = (int pInt) => { Ag.LogString(" result : >>> " + pInt.LogWith("result is")); }; } if (GUI.Button(myGUI.DivideRect(curR, colEA, colN++), "Ceremony")) // Purchase { WasPurchaseItem aObj = new WasPurchaseItem() { User = myUser, itemType = "CEREMONY", itemTypeId = "CeremonySkill01", ea = 1 }; aObj.messageAction = (int pInt) => { Ag.LogString(" result : >>> " + pInt.LogWith("result is")); }; } // _////////////////////////////////////////////////_ _____ DivideRect _____ Purchase _____ Rect rctPur = myGUI.GetRect(muiCol, muiRow++); colEA = 4; colN = 0; if (GUI.Button(myGUI.DivideRect(rctPur, colEA, colN++), "Msg")) // Purchase { WasPurchaseItem aObj = new WasPurchaseItem() { User = myUser, itemType = "MESSAGE", itemTypeId = "EndMessage", ea = 1 }; aObj.messageAction = (int pInt) => { Ag.LogString(" result : >>> " + pInt.LogWith("result is")); }; } if (GUI.Button(myGUI.DivideRect(rctPur, colEA, colN++), "Func")) // Purchase { WasPurchaseItem aObj = new WasPurchaseItem() { User = myUser, itemType = "Func", ea = 1, itemTypeId = "FuncCardExtendD" //"FuncBackNumEdit : ", }; aObj.messageAction = (int pInt) => { aObj = null; }; } // _////////////////////////////////////////////////_ _____ DivideRect _____ Purchase Item with TextField _____ Rect curRpur = myGUI.GetRect(muiCol, muiRow++); colN = 0; colEA = 3; itemType = GUI.TextField(myGUI.DivideRect(curRpur, colEA, colN++), itemType); itemTypeID = GUI.TextField(myGUI.DivideRect(curRpur, colEA, colN++), itemTypeID); if (GUI.Button(myGUI.DivideRect(curRpur, colEA, colN++), "Purchase")) // Purchase { WasPurchaseItem aObj = new WasPurchaseItem() { User = myUser, itemType = itemType, itemTypeId = itemTypeID, ea = 1 }; aObj.messageAction = (int pInt) => { }; } // _////////////////////////////////////////////////_ _____ DivideRect _____ Purchase _____ Rect rctPrc = myGUI.GetRect(muiCol, muiRow++); colN = 0; colEA = 4; if (GUI.Button(myGUI.DivideRect(rctPrc, colEA, colN++), "Uniform")) // Purchase { WasPurchaseUniform aObj = new WasPurchaseUniform() { User = myUser, uniformTypeID = "KickerUniformTop4", // "DefaultUniform", }; aObj.messageAction = (int pInt) => { }; } if (GUI.Button(myGUI.DivideRect(rctPrc, colEA, colN++), "Costume")) // Purchase { WasPurchaseCostume aObj = new WasPurchaseCostume() { User = myUser, costumeName = "RoseCostume" }; aObj.messageAction = (int pInt) => { switch (pInt) // 0:성공, -1:캐쉬 부족, 1:잘못된 단위 { case 0: Ag.LogString(" result : Success "); return; } }; } if (GUI.Button(myGUI.DivideRect(rctPrc, colEA, colN++), "BuyGold")) // Purchase { WasPurchaseGold aObj = new WasPurchaseGold() { User = myUser, Gold = 100 }; aObj.messageAction = (int pInt) => { }; } if (GUI.Button(myGUI.DivideRect(rctPrc, colEA, colN++), "Card")) // Purchase { WasPurchaseCard aObj = new WasPurchaseCard() { User = myUser, option = 1, eaNum = 1, buyType = 0, leagueType = "K", additionalBuyFlag = 1 }; aObj.messageAction = (int pInt) => { }; } // _////////////////////////////////////////////////_ _____ DivideRect _____ ItemUse Drink / Scouter _____ Rect curRUse = myGUI.GetRect(muiCol, muiRow++); colN = 0; colEA = 3; if (GUI.Button(myGUI.DivideRect(curRUse, colEA, colN++), "UseDrink")) // Item Use { WasItemUse aObj = new WasItemUse() { User = myUser, itemType = "DRINK", itemTypeId = "GreenDrink" }; aObj.messageAction = (int pInt) => { Ag.LogString(" result : >>> " + pInt.LogWith("result is")); }; } if (GUI.Button(myGUI.DivideRect(curRUse, colEA, colN++), "Scout")) // Scouter { WasScouter aObj = new WasScouter() { User = myUser }; aObj.messageAction = (int pInt) => { aObj = null; }; } if (GUI.Button(myGUI.DivideRect(curRUse, colEA, colN++), "Add +")) // Scouter { myUser.GetCardOrderOf(1).AddScouterValue(3, false); } // _////////////////////////////////////////////////_ _____ DivideRect _____ Mail _____ Rect curB = myGUI.GetRect(muiCol, muiRow++); colN = 0; if (GUI.Button(myGUI.DivideRect(curB, 3, colN++), "Mail")) { WasMailFetch aObj = new WasMailFetch() { User = myUser }; aObj.messageAction = (int pInt) => { }; } if (GUI.Button(myGUI.DivideRect(curB, 3, colN++), "M:Erase")) { WasMailErase aObj = new WasMailErase() { User = myUser, msgID1 = myUser.arrMail [0].WAS.msgID1, msgID2 = myUser.arrMail [0].WAS.msgID2 }; aObj.messageAction = (int pInt) => { }; } if (GUI.Button(myGUI.DivideRect(curB, 3, colN++), "M:Send")) { WasMailSend aObj = new WasMailSend() { User = myUser, friendID = "88214690633939121", itemTypeId = "BlueDrink", content = " JJJ !!! " }; aObj.messageAction = (int pInt) => { }; } muiRow++; // _////////////////////////////////////////////////_ _____ DivideRect _____ Card 3 _____ Rect curFetch = myGUI.GetRect(muiCol, muiRow++); if (GUI.Button(myGUI.DivideRect(curFetch, 4, 0), "F:Item : " + myUser.arrItem.Count)) // Item { WasItemInfo aObj = new WasItemInfo() { User = myUser }; aObj.messageAction = (int pInt) => { switch (pInt) // 0:성공 { case 0: Ag.LogString(" result : Success "); return; } }; } if (GUI.Button(myGUI.DivideRect(curFetch, 4, 1), "F:Card")) // Card { WasCardUniformCostume aObj = new WasCardUniformCostume() { User = myUser, code = 240 }; aObj.messageAction = (int pInt) => { switch (pInt) // 0:성공 { case 0: Ag.LogString(" result : Success "); return; } }; // myUser.CheckKickOrder (); } if (GUI.Button(myGUI.DivideRect(curFetch, 4, 2), "F:Unif")) // Uniform { WasCardUniformCostume aObj = new WasCardUniformCostume() { User = myUser, code = 241 }; aObj.messageAction = (int pInt) => { switch (pInt) // 0:성공 { case 0: Ag.LogString(" result : Success "); return; } }; } if (GUI.Button(myGUI.DivideRect(curFetch, 4, 3), "F:Cstm")) // Costume { WasCardUniformCostume aObj = new WasCardUniformCostume() { User = myUser, code = 242 }; aObj.messageAction = (int pInt) => { switch (pInt) // 0:성공 { case 0: Ag.LogString(" result : Success "); return; } }; } // _////////////////////////////////////////////////_ _____ Item _____ Update _____ if (GUI.Button(myGUI.GetRect(muiCol, muiRow++), "Msg Update : " + myUser.arrItem.Count)) { // 아이템은 메시지만 업데이트 대상임. AmItem startMsg = myUser.arrItem.GetMemberWithCond((AmItem iObj) => { return(iObj.WAS.itemTypeID == "CeremonySkill01"); //"EndMessage"; //"StartMessage"; // 이렇게 조건을 지정하여 해당 아이템을 가져온다. }); startMsg.WAS.applyID = -1; startMsg.WAS.msg = " again DoitAgain''' "; WasItemUpdate aObj = new WasItemUpdate() { User = myUser, itemObj = startMsg // 이렇게 업데이트 대상 아이템 <하나> 만 넣어준다. }; aObj.messageAction = (int pInt) => { }; } // _////////////////////////////////////////////////_ _____ DivideRect _____ Update _____ Rect curRUp = myGUI.GetRect(muiCol, muiRow++); colN = 0; colEA = 4; if (GUI.Button(myGUI.DivideRect(curRUp, colEA, colN++), "Uniform " + myUser.arrUniform.Count)) // Update { WasUniformUpdate aObj = new WasUniformUpdate() { User = myUser }; aObj.messageAction = (int pInt) => { switch (pInt) // 0:성공 { case 0: Ag.LogString(" result : Success "); break; } }; } if (GUI.Button(myGUI.DivideRect(curRUp, colEA, colN++), "Cstm " + myUser.arrCostume.Count)) // Update { myUser.arrCostume [0].WAS.cardId = 11; myUser.arrCostume [0].WAS.etcInfo = " Changed Info"; WasCostumeUpdate aObj = new WasCostumeUpdate() { User = myUser }; aObj.messageAction = (int pInt) => { switch (pInt) // 0:성공 { case 0: Ag.LogString(" result : Success "); break; } }; } if (GUI.Button(myGUI.DivideRect(curRUp, colEA, colN++), "Card " + myUser.arrCard.Count)) // Update //if (GUI.Button (myGUI.GetRect (muiCol, muiRow++), " < Card Update :: " + myUser.arrCard.Count + " >")) { // Update { for (int kk = 0; kk < myUser.arrCard.Count; kk++) { myUser.arrCard [kk].mustUpdate = true; } List <AmCard> cardArr = myUser.GetUpdateCards(); if (cardArr.Count != 0) { WasCardUpdate aObj = new WasCardUpdate() { User = myUser, arrSendCard = null }; aObj.messageAction = (int pInt) => { switch (pInt) // 0:성공, -1:캐쉬 부족, 1:잘못된 단위 { case 0: Ag.LogString(" result : Success "); return; } }; } } #if UNITY_EDITOR #endif }