Exemple #1
0
 protected override void ReleaseSelf(bool calledDestroy)
 {
     if (SystemConfig.IsReleaseResourceOn)
     {
         BoxBuyUI.Instance = null;
         base.ReleaseSelf(true);
     }
 }
Exemple #2
0
    private void BuyBox()
    {
        RechargeGoodsInfo rechargeGoodsInfo = RechargeManager.Instance.GetRechargeGoodsInfo(this.ID);

        if (rechargeGoodsInfo != null)
        {
            int todayRechargeCount = RechargeManager.Instance.GetTodayRechargeCount(this.ID);
            if (todayRechargeCount > 0)
            {
                UIManagerControl.Instance.ShowToastText(GameDataUtils.GetChineseContent(517002, false));
                return;
            }
            Dict     dict     = rechargeGoodsInfo.dropID.get_Item(0);
            BoxBuyUI boxBuyUI = UIManagerControl.Instance.OpenUI("BoxBuyUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush) as BoxBuyUI;
            boxBuyUI.SetShowItem(dict.key, delegate
            {
                RechargeManager.Instance.ExecutionToRechargeDiamond(this.ID);
            });
        }
    }
Exemple #3
0
 private void Awake()
 {
     BoxBuyUI.Instance = this;
     base.AwakeBase(BindingContext.BindingContextMode.MonoBinding, false);
 }