예제 #1
0
 private void OnMsg_coalesceviewOpenView(MobaMessage msg)
 {
     if (msg.Param != null)
     {
         ModelIDs modelsData = default(ModelIDs);
         modelsData = (ModelIDs)msg.Param;
         this.SetModelsData(modelsData);
         this.countLackPrimary.gameObject.SetActive(false);
         this.SetSprite();
         this.SetDescription();
         this.RefreshOwned();
     }
 }
예제 #2
0
 private void OnMsg_coalesceviewOpenView(MobaMessage msg)
 {
     if (msg.Param != null)
     {
         ModelIDs modelsData = default(ModelIDs);
         modelsData = (ModelIDs)msg.Param;
         this.SetModelsData(modelsData);
         this.SetPerCost();
         this.ResetSectionState();
         this.SetSprite();
         this.SetDescription();
         this.ReFreshOwned();
     }
 }
        private void SetPerCost(ModelIDs mds)
        {
            int num  = mds.modelID_1;
            int num2 = mds.modelID_2;

            if (num != 0)
            {
                SysGameItemsVo dataById = BaseDataMgr.instance.GetDataById <SysGameItemsVo>(num.ToString());
                if (dataById != null)
                {
                    this.cost1to2 = dataById.consumption_money;
                }
            }
            if (num2 != 0)
            {
                SysGameItemsVo dataById2 = BaseDataMgr.instance.GetDataById <SysGameItemsVo>(num2.ToString());
                if (dataById2 != null)
                {
                    this.cost2to3 = dataById2.consumption_money;
                }
            }
        }
예제 #4
0
 private void SetModelsData(ModelIDs mds)
 {
     this.modelID_1 = mds.modelID_1;
     this.modelID_2 = mds.modelID_2;
     this.modelID_3 = mds.modelID_3;
 }