//复活 public void toLive() { isDead = false; banBattleRole.attribute = banBattleRole.initAttri; sprite_Attribute.spriteName = BanTools.GetAttributeName(banBattleRole.initAttri); sprite_Attribute_Border.spriteName = BanTools.GetAttributeBorderName(banBattleRole.initAttri); }
public void SetData(BanBattleRole roleInfo, bool showAttack) { AtlasMgr.mInstance.SetHeadSprite(_head, roleInfo.number.ToString()); _head.MakePixelPerfect(); _level.text = "Lv" + roleInfo.level; att.spriteName = BanTools.GetAttributeName(roleInfo.initAttri); border.spriteName = BanTools.GetAttributeBorderName(roleInfo.initAttri); _power.text = "" + (roleInfo.group == BanBattleRole.Group.Attack ? roleInfo.attackBP : roleInfo.defenseBP); _name.text = Core.Data.monManager.getMonsterByNum(roleInfo.number).name; if (showAttack) { _part.spriteName = "common-0008"; } else { _part.spriteName = "common-0010"; } }
public void ReadData(BanBattleRole aBanBattleRole, bool isCurrent = false) { AtlasMgr.mInstance.SetHeadSprite(sprite_Role, aBanBattleRole.number.ToString()); sprite_Attribute_Border.spriteName = BanTools.GetAttributeBorderName(aBanBattleRole.attribute); if (!isDie) { sprite_Attribute.spriteName = BanTools.GetAttributeName(aBanBattleRole.attribute); } else { sprite_Attribute.spriteName = BanTools.GetAttributeName(BanBattleRole.Attribute.Unknown); } text_Level.text = "Lv" + aBanBattleRole.level; if (Core.Data.monManager != null) { RoleName.text = Core.Data.monManager.getMonsterByNum(aBanBattleRole.number).name; } banBattleRole = aBanBattleRole; }
//改变为全属性 public void changeToAllAttribute() { sprite_Attribute_Border.spriteName = BanTools.GetAttributeBorderName(BanBattleRole.Attribute.Quan); sprite_Attribute.spriteName = BanTools.GetAttributeName(BanBattleRole.Attribute.Quan); }