コード例 #1
0
        private void SetSelectedCharChg(MonsterData monster)
        {
            this.changeMonsterData = monster;
            if (null != this.goMN_ICON_CHG_2)
            {
                UnityEngine.Object.Destroy(this.goMN_ICON_CHG_2);
            }
            Transform      transform      = this.goMN_ICON_CHG.transform;
            GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(this.changeMonsterData, transform.localScale, transform.localPosition, transform.parent, true, false);

            this.goMN_ICON_CHG_2 = guimonsterIcon.gameObject;
            this.goMN_ICON_CHG_2.SetActive(true);
            guimonsterIcon.Data = this.changeMonsterData;
            guimonsterIcon.SetTouchAct_S(new Action <MonsterData>(this.actRemoveChg));
            guimonsterIcon.SetTouchAct_L(new Action <MonsterData>(this.ActMIconLong));
            UIWidget component  = this.goMN_ICON_CHG.GetComponent <UIWidget>();
            UIWidget component2 = guimonsterIcon.gameObject.GetComponent <UIWidget>();

            if (component != null && component2 != null)
            {
                int             add        = component.depth - component2.depth;
                DepthController component3 = guimonsterIcon.gameObject.GetComponent <DepthController>();
                component3.AddWidgetDepth(guimonsterIcon.transform, add);
            }
            this.goMN_ICON_CHG.SetActive(false);
            guimonsterIcon.Gimmick = ExtraEffectUtil.IsExtraEffectMonster(this.changeMonsterData, this.effectArray);
            this.SetChangeMonsterData();
        }
コード例 #2
0
 private void SetSelectedChar()
 {
     if (CMD_ChangeMonster.SelectMonsterData != null)
     {
         Transform      transform      = this.goMN_ICON_NOW.transform;
         GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(CMD_ChangeMonster.SelectMonsterData, transform.localScale, transform.localPosition, transform.parent, true, false);
         this.goMN_ICON_NOW_2 = guimonsterIcon.gameObject;
         this.goMN_ICON_NOW_2.SetActive(true);
         guimonsterIcon.Data = CMD_ChangeMonster.SelectMonsterData;
         guimonsterIcon.SetTouchAct_L(new Action <MonsterData>(this.ActMIconLong));
         UIWidget component  = this.goMN_ICON_NOW.GetComponent <UIWidget>();
         UIWidget component2 = guimonsterIcon.gameObject.GetComponent <UIWidget>();
         if (null != component && null != component2)
         {
             int             add        = component.depth - component2.depth;
             DepthController component3 = guimonsterIcon.gameObject.GetComponent <DepthController>();
             component3.AddWidgetDepth(guimonsterIcon.transform, add);
         }
         this.goMN_ICON_NOW.SetActive(false);
         guimonsterIcon.Gimmick = ExtraEffectUtil.IsExtraEffectMonster(CMD_ChangeMonster.SelectMonsterData, this.effectArray);
     }
 }
コード例 #3
0
 public bool IsMatch(List <string> ExtraEffectIDList, MonsterData MonsterData)
 {
     return(ExtraEffectUtil.IsExtraEffectMonster(MonsterData, this.GetExtraEffectDataList(ExtraEffectIDList).ToArray()));
 }