diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/EnemyView.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/EnemyView.lua index c8c2a66684..10ab48d98e 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/EnemyView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/EnemyView.lua @@ -42,7 +42,7 @@ function EnemyView:onCreate(go, role, position, root) self.spAtkTime = RoleConfig[role.roleData.roleId].CastingSkills/1000 self.atkSoundTime = RoleConfig[role.roleData.roleId].CastingAudio/1000 self.attackSound = RoleConfig[role.roleData.roleId].sond - self.readingName = HeroConfig[role.roleData.roleId].readingName + self.readingName = HeroConfig[role.roleData.roleId].ReadingName -- self.nameText.text = self.readingName diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/PlayerView.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/PlayerView.lua index 02ac1e639d..6a409f1a12 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/PlayerView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/PlayerView.lua @@ -45,11 +45,11 @@ function PlayerView:onCreate(go, role, position, root) self.spAtkTime = RoleConfig[role.roleData.roleId].CastingSkills/1000 self.atkSoundTime = RoleConfig[role.roleData.roleId].CastingAudio/1000 self.attackSound = RoleConfig[role.roleData.roleId].sond - self.readingName = HeroConfig[role.roleData.roleId].readingName + self.readingName = HeroConfig[role.roleData.roleId].ReadingName self.nameText.text = self.readingName self.level.text = role:GetRoleData(RoleDataName.Level) - self.sprite = Util.LoadSprite(GetProStrImageByProNum(role.roleData.element)) + self.elementImg.sprite = Util.LoadSprite(GetProStrImageByProNum(role.roleData.element)) self.bg1.sprite = Util.LoadSprite(GetBattleHeroCardStarBg[role.roleData.star]) self.bg2.sprite = Util.LoadSprite(GetHeroCardStarFg[role.roleData.star]) local starGrid = Util.GetGameObject(go, "StarGrid")