void ReceivedTicketShop() { UtilMgr.RemoveBackState(UtilMgr.STATE.Profile); UtilMgr.AnimatePageToLeft(UtilMgr.GetLastBackState().ToString(), "Shop"); UtilMgr.AddBackState(UtilMgr.STATE.Shop); transform.root.FindChild("Shop").GetComponent <Shop>().InitItemShop( UtilMgr.GetLocalText("StrTicketShop"), Shop.TICKET, mItemEvent); }
void ReceivedGold() { UtilMgr.RemoveBackState(UtilMgr.STATE.Profile); if (UtilMgr.GetLastBackState() != UtilMgr.STATE.Shop) { UtilMgr.AnimatePageToLeft(UtilMgr.GetLastBackState().ToString(), "Shop"); UtilMgr.AddBackState(UtilMgr.STATE.Shop); } transform.root.FindChild("Shop").GetComponent <Shop>().InitGoldShop( UtilMgr.GetLocalText("StrGoldShop"), Shop.GOLD, mGoldEvent); }
public void OnClose() { transform.FindChild("Body").FindChild("Changeables").FindChild("Analysis") .FindChild("Radar").FindChild("Canvas").gameObject.SetActive(false); mPlayerGraphData = null; mCardList = null; IsCard = false; IsPack = false; IsFirstPack = false; transform.GetComponent <PlayerCardAnimation>().AnimateDisappear(); UtilMgr.RemoveBackState(UtilMgr.STATE.PlayerCard); }
public void Init() { transform.localPosition = new Vector3(2000f, 0); transform.gameObject.SetActive(true); Reset(); transform.FindChild("Body").FindChild("Scroll View").GetComponent <UIScrollView>().ResetPosition(); UtilMgr.RemoveBackState(UtilMgr.STATE.Profile); UtilMgr.AnimatePageToLeft(UtilMgr.GetLastBackState().ToString(), "Settings"); UtilMgr.AddBackState(UtilMgr.STATE.Settings); // UtilMgr.AnimatePageToLeft(UtilMgr. }