public void RegisterPushId(string id) { Ag.LogDouble(id + "Register ID"); Fb.AndroidRegistrationID = id; //JCE.JceNotiTokenSetting(Ag.mySelf); }
//public bool IsOK { get { return WAS && Node; } } public NetException() { ConnectLossAct += () => { // WAS Error or Time out ... Lte <--> Wifi Ag.LogIntenseWord(" Connection Loss Event "); // Gaming ... if (Ag.CurrentScene == "GAME") // ignore ? send leave.. timeout... //return; { Ag.NodeObj.LeaveMyself(); } ConnectLossSignalGone = true; // popup open.. }; // mUIpopup.SetActive (true); // NetworkPopup.cs 에서 처리함. NodeConnectionLossAct = () => { Ag.LogIntenseWord(" Connection Loss Event @ Node "); AgStt.NodeClose(); // Gaming ... if (Ag.CurrentScene == "GAME") { Ag.LogDouble(" Node Connection Loss Evnt >>> In GAME << ..... _____ "); ConnectLossSignalGone = true; return; } // Auto Restart Node .... AgStt.NodeOpen(); Ag.LogDouble(" NetException :: Node .... End ..... _____ "); }; }
void LineUpSetting() { Ag.LogDouble(" MangerTeam.cs LineUpSetting "); object arrMain = Ag.mySelf.GetMainCards(); foreach (Transform child in dicMenuList["TopCardLine"].transform) { int kickOdr = int.Parse(child.name.Substring(child.name.Length - 1, 1)); //child.GetComponent<PlayerCardInfo> ().mCard.KickOrder = kickOdr; Ag.mySelf.SetKickOrder(child.GetComponent <PlayerCardInfo> ().mCard.WAS.ID, kickOdr); Ag.LogString(" ManagerTeam >> ID : " + child.GetComponent <PlayerCardInfo> ().mCard.WAS.ID + " kickOrder : " + kickOdr); //Ag.LogString ( "ManagerTeam >> Kick Order " + child.GetComponent<PlayerCardInfo> ().mCard.KickOrder); } Ag.LogStartWithStr(1, " MangerTeam.cs LineUpSetting After Set Main Cards .... "); arrMain = Ag.mySelf.GetMainCards(); foreach (Transform child in mRscrcMan.FindChild(dicMenuList["Ui_team"], "LPanel_lineup/card_character/grid", true).transform) { //child.GetComponent<PlayerCardInfo> ().mCard.KickOrder = -1; Ag.mySelf.SetKickOrder(child.GetComponent <PlayerCardInfo> ().mCard.WAS.ID, -1); Ag.LogString(" ManagerTeam Rest set -1 >> ID : " + child.GetComponent <PlayerCardInfo> ().mCard.WAS.ID); } Ag.LogStartWithStr(1, " MangerTeam.cs LineUpSetting After Set Sub ..... Cards .... "); arrMain = Ag.mySelf.GetMainCards(); Ag.mySelf.ApplyCurrentDeck(); ShowCardEff(); }
public void TestFunction() { Ag.LogDouble(" Test Function >>>> "); //create new display and stock instances StockDisplay stockDisplay = new StockDisplay(); Stock stockObj = new Stock(); //create a new delegate instance and bind it //to the observer's askpricechanged method Stock.AskPriceDelegate aDelegate = new Stock.AskPriceDelegate(stockDisplay.AskPriceChanged); // DlgtType dlgtObject = new DlgtType ( function ); // 대리자 객체 생성. //add the delegate to the event stockObj.AskPriceChangedDlgt += aDelegate; // anInstance.aMember += dlgtObject ; //loop 100 times and modify the ask price for (int looper = 0; looper < 100; looper++) { stockObj.AskPrice = looper; } //remove the delegate from the event stockObj.AskPriceChangedDlgt -= aDelegate; }
// //////////////////////////////////////////////// //////////////////////// >>>>> Touch Process <<<<< public bool TouchProcess() { string curStage = CurStt(); if (!mIsTouchEnable) { return(false); } //Ag.LogStartWithStr (2, " Just Touched :: Stage >>> " + curStage + " Am I Goint " + mAmIGoing + " Cursor Position " + mCursorPosition + "\n"); switch (curStage) { /* case "MidPaus": * if (Ag.mgIsKick) return false; * mIsTouched = true; * Ag.LogString("TouchProcess.. Defence Direction " ); * break; * case "PreGame": // */ case "GameDir": case "GameSkl": if (mAmIGoing) { return(false); } //Ag.LogIntenseWord(" Effect Touched Here !! "); //mCursorPosition = GetCursorPosition(); Ag.LogDouble(" Just Touched :: Stage >>> " + curStage + " Am I Goint " + mAmIGoing + " Cursor Position " + mCursorPosition + "\n"); mIsTouched = true; Ag.LogDouble("TouchProcess.. mCurPosition is " + mCursorPosition.ToString()); return(true); // Effective Touch } return(false); // Useless Touch }
// _////////////////////////////////////////////////_ _____ Matching _____ Coroutine _____ IEnumerator RandomAppliedAndWaitForEnemy() //BotMatching () { Ag.LogIntenseWord(Ag.CoroutineSign + " .... RandomAppliedAndWaitForEnemy :: "); // 15 초 기다렸다가 매칭이 되었으면 그냥 패스.. 아니면 봇과 매칭. yield return(new WaitForSeconds(15f)); //MatchingFlag = true; Ag.LogIntenseWord(Ag.CoroutineSign + " After 15 Sec .... Menu... KickOff Ready >> Flag :: "); if (Ag.GameStt.ExchangeParsedForGominjung) { Ag.LogDouble(" Game already Started... Bot NO.. :: "); } else { Ag.mVirServer.maiGradeOfBot = 0; Ag.NodeObj.CancelRandomStartGameWithBot(); } // 2 초 후에 봇과 대전 / 패스 yield return(new WaitForSeconds(2f)); if (Ag.GameStt.ExchangeParsedForGominjung) { Ag.LogDouble(Ag.CoroutineSign + " Just Matching ... Not with Bot ... "); } else // Un usual case ... !!!!! Exchange is too late !!! { Ag.LogDouble(" RandomAppliedAndWaitForEnemy :: ExchangeParsedForGominjung is false >>> Exception step .. "); //if (!Ag.mSingleMode) // Btn_Fun_MatchCancleAndGoOut (); } }
public void TestEncript() { // _////////////////////////////////////////////////_ _____ Test _____ Encript _____ Ag.LogString("// _////////////////////////////////////////////////_ _____ Test _____ Encript _____"); UTAES.AESEncrypt128("1~`aA+_';\"지금").HtLog(); Ag.LogNewLine(3); ("1~`aA+_';\"" + WWW.EscapeURL("지금")).HtLog(); UTAES.AESEncrypt128("1~`aA+_';\"%EA%B0%80").HtLog(); //+ WWW.EscapeURL("가")).HtLog(); string encrpt = UTAES.AESEncrypt128("This is test string "); encrpt = UTAES.AESDecrypt128(encrpt); Ag.LogIntenseWord(" UTAES Encript >> " + encrpt); encrpt = UTAES.AESEncrypt128("1~`aA+_';\"%EA%B0%80", true); encrpt = UTAES.AESDecrypt128(encrpt, true); Ag.LogIntenseWord(" UTAES private Encript >> " + encrpt); encrpt = UTAES.AESEncrypt128("1~`aA+_';\"지금", true); encrpt = UTAES.AESDecrypt128(encrpt, true); Ag.LogIntenseWord(" UTAES private Encript >> " + encrpt); Ag.LogDouble(" AESEncrypt128 Test >>>>>>>>>>>>>>>>>>>>>>> .... >>>> _____ End >>> "); }
public AmCrpt(UInt32 pVal) { mFactor = AgUtil.RandomInclude(3, 7); //Ag.LogDouble ("mFactor is :: " + mFactor); Dlgt_V_Int rNum = () => AgUtil.RandomInclude(3, 500); // Fake List .. Use for Nothing.. arrCrpt = new List <int>() { rNum(), rNum(), rNum(), rNum(), rNum(), rNum(), rNum(), rNum(), rNum(), rNum() }; string val = pVal.ToString(); int lengVal = val.Length; for (int k = 0; k < (10 - lengVal); k++) { val = "0" + val; //Ag.LogDouble(" val :: " + val); } strInt = ""; for (int k = 0; k < 10; k++) // Random 3Character { int rdNum = AgUtil.RandomInclude(3, 50); string rndStr = "sdjl23kjas;dlkflasdfsadfsdfewqewroiwequroqweuoiewlkkwlksdflsadlflkasdflkasj,xcm,xzcmv,asd,as,df,slkewlk3io2weiodslfasdl".Substring(rdNum, 3); strInt += CriptInt(val.Substring(k, 1)); strInt += rndStr; //Ag.LogDouble( " strInt :: >>" + strInt ); } Ag.LogDouble(" strInt :: >>" + strInt); }
/// <summary> /// skill 값 세팅 { 222, 22, 0 } /// </summary> void SetSkillValue() { int fire = GetSkillGood(grade, level), blaze = GetSkillGreat(grade, level), volcano = GetSkillPerfect(grade, level); if (skill [0] < fire || skill [1] < blaze) { mustUpdate = true; } Ag.LogDouble(" Set Skill Value :: " + fire + " / " + blaze + " / " + volcano); if (!isKicker) // Keeper case { if (grade == "S") { blaze = 0; // [ 283, 0, 0 ] } if (grade == "A") { volcano = 0; // [ 255, 27, 0 ] } } skill = new int[] { fire, blaze, volcano }; }
public void ShiftedRange(out float[] xRange, out float[] yRange, float disp) { xRange = new float[] { mVert?Xrange[0] : Xrange[0] + disp, mVert? Xrange[1] : Xrange[1] + disp }; yRange = new float[] { mVert?Yrange[0] + disp : Yrange[0], mVert? Yrange[1] + disp : Yrange[1] }; Ag.LogDouble(" Shifted Range " + disp.LogWith("disp") + xRange [0].LogWith("X0") + xRange [1].LogWith("X1") + yRange [0].LogWith("Y0") + yRange [1].LogWith("Y1")); }
public override void SendAction() { Ag.LogString("WasUniformUpdate :: SendAction ... Started ... "); if (partOfAll == null) { partOfAll = new List <AmUniform> (); for (int k = 0; k < User.arrUniform.Count; k++) { if (k == 0 || User.arrUniform [k].mustUpdate) { partOfAll.Add(User.arrUniform [k]); } } } SendStr = ""; SendStr = SendStr.AddCodeKeyKKOID(User, 320); SendStr = SendStr.AddKeyValue("formatVersion", 1); string unifArr = ""; int sendNum = partOfAll.Count > 8 ? 8 : partOfAll.Count; Ag.LogDouble(" Update >>> .... Remain >>> " + sendNum); for (int i = 0; i < sendNum; i++) { AmUniform uObj = partOfAll [i]; //Ag.LogString (" Must Update ?? " + uObj.mustUpdate); //if (uObj.mustUpdate || i == 0) unifArr += uObj.ToJsonStr() + " , "; } partOfAll.RemoveRange(0, sendNum); unifArr = unifArr.Substring(0, unifArr.Length - 2); unifArr = unifArr.AddSqreBrakt(); SendStr = SendStr.AddArray("arrUniform", unifArr, false); SendStr = SendStr.AddParen(); postAction += () => { Ag.LogString("WasUniformUpdate :: postAction " + Result.result); if (partOfAll.Count > 0) { Ag.LogIntenseWord(" Update Again .... Remain >>> " + partOfAll.Count); SendAction(); } messageAction(Result.result); Ag.LogString(" postAction "); }; SendAndRciv(); }
/// <summary> /// 텍스트 공지사항 출력 /// </summary> void TextBanner() { string pStamp; Ag.LogString(" MenuManager :: joycity TextBanner Count" + Joycity.arrTextNotice.Count); for (int i = 0; i < Joycity.arrTextNotice.Count; i++) { GameObject Gobj; JceTextNotice curNoti = Joycity.arrTextNotice [i]; //curNoti.IsFreqency = true; if (curNoti.IsFreqency) { pStamp = PreviewLabs.PlayerPrefs.GetString("JoyCityTextBannerTextFreq" + curNoti.idx); if (string.IsNullOrEmpty(pStamp)) { curNoti.AlreadySeenNum = 0; Ag.LogDouble(" TextBanner >>> IsFrequency.. first time " + curNoti.frequency_time + " AlreadySeen : " + curNoti.AlreadySeenNum); } else { try { curNoti.AlreadySeenNum = int.Parse(pStamp); Ag.LogDouble(" TextBanner >>> IsFrequency.. time ? " + curNoti.AlreadySeenNum); } catch { Ag.LogIntenseWord(" TextBanner >>> Catch .... >>>> Error "); curNoti.AlreadySeenNum = 1; } if (curNoti.AlreadySeenNum >= int.Parse(curNoti.frequency_time)) { continue; } } } Gobj = (GameObject)Instantiate(Resources.Load("prefab_General/TextNotice")); Gobj.transform.parent = FindGameObject("Ui_camera/Camera", true).transform; Gobj.GetComponent <UIAnchor> ().panelContainer = FindGameObject("Ui_camera", true).gameObject.GetComponent <UIPanel> (); Gobj.transform.localPosition = new Vector3(0, 0, -1000 - i * 60); Gobj.transform.localScale = new Vector3(1, 1, 1); Gobj.GetComponent <CloseThisObject> ().mTimestamp = curNoti.timestamp; Gobj.name = "JoyCityTextBanner" + curNoti.idx; Gobj.GetComponent <CloseThisObject> ().mUrl = Joycity.arrTextNotice [i].url; Ag.LogString("Joycity.arrTextNotice [i].url" + Joycity.arrTextNotice [i].url, false); Gobj.GetComponent <CloseThisObject> ().JceNotiObj = curNoti; Gobj.transform.FindChild("Label_content").gameObject.GetComponent <UILabel> ().text = curNoti.content; Gobj.transform.FindChild("Label_title").gameObject.GetComponent <UILabel> ().text = curNoti.title; mRscrcMan.AddComponentUISendMessage(mRscrcMan.FindChild(Gobj, "btn_close", true), Gobj, "DestoryTextObj"); mRscrcMan.AddComponentUISendMessage(mRscrcMan.FindChild(Gobj, "btn_detail", true), Gobj, "OpenUrl"); mRscrcMan.AddComponentUISendMessage(mRscrcMan.FindChild(Gobj, "btn_ok", true), Gobj, "DestoryTextObj"); } }
// _////////////////////////////////////////////////_ _____ 선 수 정 보 _____ Get Methods _____ public int GetValueOfDirection(int PlusLevel) // deck applied { // 방 향 :: Dir (narrow) + (5 - 등급) * 10 int theLevel = PlusLevel + level > 10 ? 10 : PlusLevel + level; //return GetDirectionWidthOfSmallArea (theLevel) + (5 - GradeValue) * 10; Ag.LogDouble(" Value of Direction :: >>> " + DirectWidthOfSmallAreaWidhDeck(theLevel)); return(DirectWidthOfSmallAreaWidhDeck(theLevel) + (5 - GradeValue) * 10); }
// _////////////////////////////////////////////////_ _____ Deck Buff _____ 덱 적용된 기본값 계산 _____ /// <summary> /// 덱 버프 적용 후 밸런스 값 계산 /// </summary> /// <returns>증가된 밸런스.</returns> /// <param name="pLevel">Level.</param> public int BalanceValueWithDeckItem(int pLevel) { int bal = CalculateBalance(pLevel); int diff = 100 - bal; diff = (int)(0.01f * DIkeepBal * diff); Ag.LogDouble(" BalanceValueWithDeckItem >>> " + bal + " DiKeepBal : " + DIkeepBal + " After Deck " + (bal + diff)); return(bal + diff); }
public void LogPositions() { Ag.LogDouble(mName + " 162 : [ CuUiManager :: LogPositions ] "); var keyValueArr = from gObj in dicCell where gObj.Value != null orderby gObj.Value.CellCs().mSortNum ascending select gObj; foreach (KeyValuePair <string, GameObject> obj in keyValueArr) { Ag.LogString(" ____ ____ ____ Pstn.SaveV :: " + obj.Value.CellCs().Pstn.SaveV); } }
bool SomebodyOutException() { if (Ag.GameStt.SomeoneOutPopupEnemyLeft) { Ag.LogDouble(" PopUp :: alert_someoneout >> @ Advant >> AmHost has NOT value >>>>> "); MenuCommonOpen("alert_someoneout", "Ui_popup", true); arrState.SetStateWithNameOf("Init"); return(true); } return(false); }
public void Btn_Fun_Refuse_Ok() // 거절 팝업의 OK 버튼 { Ag.LogDouble(" Btn_Fun_Refuse_Ok ()"); Ag.NodeObj.LeaveMyself(); RefuseOKUI(); mKicker.SetActive(true); mKicker.animation.Play(); //mInviteRefuse = false; }
void MatchRequireClose() { Ag.LogDouble(" Menu_MatchUI :: MatchRequireClose "); dicMenuList ["MainCamera"].SetActive(true); dicMenuList ["Ui_kickoff"].SetActive(false); dicMenuList ["Ui_lobby"].SetActive(true); dicMenuList ["Ui_team"].SetActive(false); dicMenuList ["PrePareMatch"].SetActive(false); dicPlayerOrObj ["Coin"].animation.Stop(); dicPlayerOrObj ["Refree"].animation.Stop("referee02"); }
public void LogSortNum() { Ag.LogDouble(mName + " CuUiManager 173 LogSortNum "); var keyValueArr = from gObj in dicCell where gObj.Value != null orderby gObj.Value.CellCs().mSortNum ascending select gObj; foreach (KeyValuePair <string, GameObject> obj in keyValueArr) { obj.Value.CellCs().ShowMySortInfo(); } }
//public Action ActPurchaseSuccess, ActPurchaseCancelled; public AmIAP() { arrProduct = new List <StoreKitProduct> (); StoreKitManager.productListReceivedEvent += allProducts => { // 상품 목록 받는 부분. Ag.LogString("received total products: " + allProducts.Count); ProdNumFromAppl = allProducts.Count; arrProduct = allProducts; for (int k = 0; k < arrProduct.Count; k++) { (" Product : " + arrProduct [k].productIdentifier + " Prc : " + arrProduct [k].price).HtLog(); } Ag.LogDouble(" StoreKitManager.productListReceivedEvent :: Done !!! "); }; StoreKitManager.purchaseSuccessfulEvent += tObject => { // StoreKitTransaction Object.. Ag.LogString("Receipt >>> " + tObject.base64EncodedTransactionReceipt.Substring(0, 10), pWichtig: true); AgStt.IntendedPause = false; // 초 기 화 ReceiptOfIAP = tObject.base64EncodedTransactionReceipt; TransactionID = tObject.transactionIdentifier; if (ReceiptOfIAP.Length > 100) // 구매 성공. { WasInAppPrchs aObj = new WasInAppPrchs() { User = TheUser //, ActPurchaseSuccess = this.ActPurchaseSuccess, ActPurchaseCancelled = this.ActPurchaseCancelled }; aObj.messageAction = (int pInt) => { switch (pInt) // { case 0: WasUserInfo uObj = new WasUserInfo() { User = TheUser, flag = 0 }; uObj.messageAction = (int uInt) => { Ag.LogString(" OK "); }; break; } }; Ag.LogString(" purchaseSuccessfulEvent WasInAppPrcs call.. ", pWichtig: true); } }; // public static event Action<string> purchaseCancelledEvent; StoreKitManager.purchaseCancelledEvent += tStr => { AgStt.IntendedPause = false; // 초 기 화 EventPurchaseCancelled(); Debug.Log("purchase Canceled >>_ " + tStr); }; }
public void TouchUp() { Ag.LogDouble(" CuLiaison :: Touch UP !!! "); // + FrameDest.mSwitchObj.name); if (!HaveLiason || FrameHome == null || FrameDest == null || FrameDest.mSwitchObj == null) { SetOrRelease(ref liason, null); } else { LiaisonSwitch(); } }
// _////////////////////////////////////////////////_ _///////////////////////_ _____ Mouse _____ U P _____ public override void MouseUp() { if (muiState == UiState.SPEED_LIMIT) { return; } base.MouseUp(); switch (muiState) { case UiState.SCROLL: case UiState.SCROLL_OFFLIMIT: if (arrTouch.Count < 3) { return; } float del = arrTouch [arrTouch.Count - 1].CurrentPosition(muiOption.scrlVert.Value) - arrTouch [0].CurrentPosition(muiOption.scrlVert.Value); muiFlyingSpeed = del / arrTouch.Count; //Ag.LogIntenseWord (muiFlyingSpeed.LogWith ("FlyingSpeed")); if (Math.Abs(muiFlyingSpeed) > 0.005f || muiSelectedObj == null) { SetState(UiState.FLY); } else { SetState(UiState.NONE); } Ag.LogString(" __________ Mouse Up __________________________________________________________ " + muiState); return; case UiState.SELECTED: Ag.LogDouble(mName.LogWith("Wagu") + " SELECTED :: Reset Switch, Selected Objects ... "); ReleaseHoveringObj(); ReleaseSwitchTarget(); Ag.LogString(" __________ Mouse Up __________________________________________________________ " + muiState); Ag.LogIntense(4, false); break; // return; case UiState.ALIEN_WENT: EventSetAlienToTouchManager(null); Ag.LogString(" __________ Mouse Up __________________________________________________________ " + muiState); return; case UiState.ALIEN_CAME: AlienSwitchProcess(); break; } ReleaseProcess(); SetState(UiState.NONE); }
// Kakao Init private void onAuthorized(bool _authorized) { Ag.LogDouble(" Login_Register >>> on Authorized authorized ?? " + _authorized); Ag.LogDouble(" AgStt.SvrVersion >>> :: " + AgStt.SvrVersion + " AgStt.CliVersion " + AgStt.CliVersion); // 긴급공지 #if UNITY_EDITOR _authorized = true; #endif if (AgStt.SvrVersion > AgStt.CliVersion && Ag.CurStorePlfm == StorePlfm.GooglePlay) // Update case ... Server is faster { mPopup2.SetActive(true); dicMenuList ["alert_ServerVersionCheck"].SetActive(true); return; } if (UrgenNotice()) { return; } if (_authorized) { Ag.mGuest = false; // mGuestButton.SetActive (false); // KakaoNativeExtension.Instance.ShowAlertMessage ("Move to Main, Because Already finished Login Process!"); //KakaoNativeExtension.Instance.Friends (onFriendsComplete, onFriendsError); Ag.onAuthorizedflag = false; KakaoNativeExtension.Instance.LocalUser(onLocalUserComplete, onLocalUserError); #if UNITY_EDITOR OnLoginWas(); #endif //OnLoginWas (); } else { //mPopup.SetActive (true); // Ag.mGuest = true; //mGuestButton.SetActive (true); mKakaoButton.SetActive(true); mMakeGudan.SetActive(false); /* * if (Ag.PlatformLogout) * return; */ GuestLoginWas(); } }
// //////////////////////////////////////////////// Starting Init Job public override void Start() { base.Start(); myGUI.SetColumns(3, 10); arrMan = new List <CuUiManager> (); mTimeLooseAtStartPoint = 0.5f; mSeldomActionNum = 300; Ag.LogDouble(" >>>> Start >>>>>>>>>>>>>>>>>>>> " + GetType().ToString()); SetDoubleHor1Row(); }
void RefuseOKUI() { Ag.LogDouble(" Menu_MatchUI :: RefuseOKUI "); dicMenuList ["Ui_popup"].SetActive(false); dicMenuList ["versus_refuse"].SetActive(false); dicMenuList ["PrePareMatch"].SetActive(false); dicMenuList ["Ui_setup"].SetActive(false); dicMenuList ["Ui_team"].SetActive(false); dicMenuList ["Ui_lobby"].SetActive(false); dicMenuList ["Ui_kickoff"].SetActive(true); dicMenuList ["Panel_teamback"].SetActive(true); dicMenuList ["LPanel_lineup"].SetActive(true); dicMenuList ["MainCamera"].SetActive(false); dicMenuList ["Ball"].SetActive(true); }
// _////////////////////////////////////////////////_ _____ Button Action _____ Blue _____ void Btn_Fun_DrinkBlue() { Ag.LogDouble(" Btn_Fun_DrinkBlue () "); if (Ag.mBlueItemFlag) { dicMenuList ["DrinkAuto"].GetComponent <UICheckbox> ().isChecked = true; dicMenuList ["DrinkAuto"].GetComponent <UICheckbox> ().Set(true); dicMenuList ["item00_blue_Choice"].transform.FindChild("txt_choose").gameObject.SetActive(true); dicMenuList ["item00_blue_Choice"].transform.FindChild("Label_price").gameObject.SetActive(false); dicMenuList ["item00_blue_Choice"].transform.FindChild("icon_coin").gameObject.SetActive(false); dicMenuList ["DrinkAuto"].transform.FindChild("icon_coin").gameObject.SetActive(false); dicMenuList ["DrinkAuto"].transform.FindChild("Label").gameObject.SetActive(false); dicMenuList ["DrinkAuto"].transform.FindChild("Label_price").gameObject.SetActive(false); dicMenuList ["DrinkAuto"].transform.FindChild("Label_nonauto").gameObject.SetActive(true); } else { dicMenuList ["DrinkAuto"].GetComponent <UICheckbox> ().isChecked = false; dicMenuList ["DrinkAuto"].GetComponent <UICheckbox> ().Set(false); dicMenuList ["item00_blue_Choice"].transform.FindChild("txt_choose").gameObject.SetActive(false); dicMenuList ["item00_blue_Choice"].transform.FindChild("Label_price").gameObject.SetActive(true); dicMenuList ["item00_blue_Choice"].transform.FindChild("icon_coin").gameObject.SetActive(true); dicMenuList ["DrinkAuto"].transform.FindChild("icon_coin").gameObject.SetActive(true); dicMenuList ["DrinkAuto"].transform.FindChild("Label").gameObject.SetActive(true); dicMenuList ["DrinkAuto"].transform.FindChild("Label_price").gameObject.SetActive(true); dicMenuList ["DrinkAuto"].transform.FindChild("Label_nonauto").gameObject.SetActive(false); } ItemTypeId = "BlueDrink"; ItemType = "DRINK"; // BuyType = 1; ItemInit(); mItemName = "파워향상"; Ag.LogDouble(" Btn_Fun_DrinkBlue () >>>> "); //CommonDrinkPurchase ("00_blue"); //mPrice = "300"; dicMenuList ["Label_itemtitle"].GetComponent <UILabel> ().text = "드링크 아이템 (블루)"; Ag.LogDouble(" Btn_Fun_DrinkBlue () >>>> "); dicMenuList ["item00_blue"].SetActive(true); Ag.LogDouble(" Btn_Fun_DrinkBlue () >>>> OK "); dicMenuList ["btn_auto_label_Price"].GetComponent <UILabel> ().text = "350"; dicMenuList ["DrinkAuto"].SetActive(true); mRscrcMan.FindChild(dicMenuList ["Ui_kickoff"], "LPanel_item/btngrid_basicitem_blue_red/btn_piecebuy", true); mRscrcMan.FindChild(dicMenuList ["Ui_kickoff"], "LPanel_item/btngrid_basicitem_blue_red/Label_itemdescritbtn", true); }
void Btn_Fun_MatchRequireclose() // '준비하기' 의 우상 X 버튼 { Ag.LogDouble(" Btn_Fun_MatchRequireclose ()"); FriendListUpdate = false; for (int i = 0; i < arrFriendList.Count; i++) { DestroyObject(arrFriendList [i]); } CereMonyPreviewClose(); MatchRequireClose(); LobbyPlayAniFlag = true; arrState.SetStateWithNameOf("Init"); StopAllCoroutines(); StartCoroutine(BlankPack()); //Ag.NodeObj.UserModify ("ONLINE"); }
public void LogSortNum() { Ag.LogDouble("UIManagerBase :: LogSortNum "); var keyValueArr = from gObj in dicCell where gObj.Value != null orderby gObj.Value.GetComponent <CuCell> ().mSortNum ascending select gObj; foreach (KeyValuePair <string, GameObject> obj in keyValueArr) { string prevN, nextN; prevN = (obj.Value.GetComponent <CuCell> ().mPrevGobj == null) ? "<<< Null >>>".LogWith("Prev") : obj.Value.GetComponent <CuCell> ().mPrevGobj.GetComponent <CuCell> ().mSortNum.LogWith("Prev") + obj.Value.GetComponent <CuCell> ().mPrevGobj.name; nextN = (obj.Value.GetComponent <CuCell> ().mNextGobj == null) ? "<<< Null >>>".LogWith("Next") : obj.Value.GetComponent <CuCell> ().mNextGobj.GetComponent <CuCell> ().mSortNum.LogWith("Next") + obj.Value.GetComponent <CuCell> ().mNextGobj.name; (" Sort " + prevN + obj.Value.GetComponent <CuCell> ().mSortNum.LogWith("Cur: " + obj.Value.name) + nextN).HtLog(); } }
// _////////////////////////////////////////////////_ _///////////////////////_ _____ Notification _____ Setting _____ // >> Start 에서 실행될 부분. 앱 시작 시 노티 등록. // NotificationServices.RegisterForRemoteNotificationTypes (RemoteNotificationType.Alert | RemoteNotificationType.Badge | RemoteNotificationType.Sound); // >> 노티를 모두 지울 때. // NotificationServices.ClearRemoteNotifications (); public static string GetToken() { #if UNITY_IPHONE if (NotificationServices.deviceToken == null || NotificationServices.deviceToken.Length < 5) { return("ERROR"); } string token = "%" + System.BitConverter.ToString(NotificationServices.deviceToken).Replace('-', '%'); Ag.LogDouble(" Jce.GetToken >> Device Token :: " + token); Ag.LogDouble(" Jce.GetToken >> Device Token :: " + token.Replace("%", "").ToLower()); return(token.Replace("%", "").ToLower()); #endif #if UNITY_ANDROID return(Fb.AndroidRegistrationID); #endif }
void Divide() { // float disX = (urVec.x - llVec.x) / eaX, disY = (urVec.y - llVec.y) / eaY; // distance .. for (int k = 0; k <= eaX; k++) { arrX [k] = llVec.x + disX * k; } for (int k = 0; k <= eaY; k++) { arrY [k] = llVec.y + disY * k; } Ag.LogDouble(" AgTile :: Divide >>> X : " + arrX [0] + "/" + arrX [1] + " , Y : " + arrY [0] + "/" + arrY [1]); // Ag.LogDouble (" AgTile :: Divide >>> X : " + arrX[0] + "/"+ arrX[1] + " , Y : " + arrY[0] + "/"+ arrY[1]); }