Esempio n. 1
0
 public void OnDayGiftPush(short state, MinorLoginNty down = null)
 {
     if (state != 0)
     {
         StateManager.Instance.StateShow(state, 0);
         return;
     }
     if (down != null)
     {
         this.State           = down.minorLogin;
         this.IsCanGetDayGift = this.CheckIsCanGetDayGift();
         this.DataInfo        = down;
         UIBase uIIfExist = UIManagerControl.Instance.GetUIIfExist("TownUI");
         if (uIIfExist != null)
         {
             TownUI townUI = uIIfExist as TownUI;
             townUI.ControlSystemOpens(false, 70);
         }
     }
 }
Esempio n. 2
0
    private void SetItems()
    {
        MinorLoginNty info = DayGiftManager.Instance.GetRewardItems();

        if (info == null || info.items == null)
        {
            return;
        }
        this.m_ItemPool.Create(info.items.get_Count(), delegate(int index)
        {
            if (index < info.items.get_Count() && index < this.m_ItemPool.Items.get_Count())
            {
                ItemShow.SetItem(this.m_ItemPool.Items.get_Item(index), info.items.get_Item(index).cfgId, info.items.get_Item(index).count, false, UINodesManager.T2RootOfSpecial, 14000);
            }
            if (index == this.m_ItemPool.Items.get_Count() - 1)
            {
                this.PlaySpineOfItems();
            }
        });
    }