Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
    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);
    }
Exemplo n.º 3
0
    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);
    }
Exemplo n.º 4
0
    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.
    }