コード例 #1
0
        public List <DropData> GetDiamondBoxLarge()
        {
            bool flag = true;

            object[] args = new object[] { LocalSave.Instance.GetServerUserID() };
            string   key  = Utils.FormatString("GetDiamondBox1_FirstGet_{0}", args);

            if (PlayerPrefsEncrypt.HasKey(key))
            {
                flag = false;
            }
            else
            {
                PlayerPrefsEncrypt.SetInt(key, 0);
            }
            int             num      = LocalSave.Instance.Stage_GetStage();
            Box_SilverBox   beanById = LocalModelManager.Instance.Box_SilverBox.GetBeanById(num);
            List <DropData> dropList = LocalModelManager.Instance.Drop_Drop.GetDropList(beanById.SingleDrop);

            for (int i = LocalModelManager.Instance.Equip_equip.GetBeanById(dropList[0].id).Position; flag && (i == 1); i = LocalModelManager.Instance.Equip_equip.GetBeanById(dropList[0].id).Position)
            {
                dropList = LocalModelManager.Instance.Drop_Drop.GetDropList(beanById.SingleDrop);
            }
            return(dropList);
        }
コード例 #2
0
 protected override void OnInit()
 {
     this.mData = LocalModelManager.Instance.Box_SilverBox.GetBeanById(LocalSave.Instance.Stage_GetStage());
     base.mTransfer.diamonds = this.mData.Price1;
     base.PerTime            = this.mData.Time * 60;
     base.mGoldCtrl.SetValue(this.get_price(0));
     base.FreeShow(false);
     base.UpdateBox();
 }