Example #1
0
 public void setUneuip(TowerComponent tc)
 {
     this.tc    = tc;
     _icon.url  = "image/atk";
     _name.text = "卸下";
     if (tc != null)
     {
         _detail.text = tc.getEffects();
     }
     else
     {
         _detail.text = "No Equip";
     }
 }
Example #2
0
 public void setInfo(TowerComponent tc)
 {
     this.tc = tc;
     if (tc == null)
     {
         cIcon.url    = GameConstant.TOWER_COMPONENT_ICON_PATH + "empty";
         _detail.text = "";
     }
     else
     {
         cIcon.url    = GameConstant.TOWER_COMPONENT_ICON_PATH + tc.cid;
         _detail.text = tc.cname + "\n" + tc.getEffects();
     }
 }
Example #3
0
 public void updateView(TowerComponent tc)
 {
     this.tc = tc;
     if (tc == null)
     {
         _icon.url    = GameConstant.TOWER_COMPONENT_ICON_PATH + "empty";
         _name.text   = "";
         _detail.text = "";
     }
     else
     {
         _icon.url    = GameConstant.TOWER_COMPONENT_ICON_PATH + tc.cid;
         _name.text   = tc.cname;
         _detail.text = tc.getEffects();
     }
 }