示例#1
0
 private void SetSelectedCharChg()
 {
     if (CMD_BaseSelect.DataChg != null)
     {
         if (this.goMN_ICON_CHG_2 != null)
         {
             UnityEngine.Object.Destroy(this.goMN_ICON_CHG_2);
         }
         Transform transform = this.goMN_ICON_CHG.transform;
         this.monsterIcon     = GUIMonsterIcon.MakePrefabByMonsterData(CMD_BaseSelect.DataChg, transform.localScale, transform.localPosition, transform.parent, true, false);
         this.goMN_ICON_CHG_2 = this.monsterIcon.gameObject;
         this.goMN_ICON_CHG_2.SetActive(true);
         this.monsterIcon.SetTouchAct_S(new Action <MonsterData>(this.OnPushedBaseMonsterIcon));
         this.monsterIcon.SetTouchAct_L(new Action <MonsterData>(this.ActMIconLong));
         UIWidget component  = this.goMN_ICON_CHG.GetComponent <UIWidget>();
         UIWidget component2 = this.goMN_ICON_CHG_2.GetComponent <UIWidget>();
         GUIManager.AddWidgetDepth(this.goMN_ICON_CHG_2.transform, component.depth - component2.depth);
         this.goMN_ICON_CHG.SetActive(false);
     }
 }