【测试战斗】报错修复

dev_chengFeng
gaoxin 2021-11-24 14:22:27 +08:00
parent f01889db21
commit d1ce54c9a9
1 changed files with 1 additions and 1 deletions

View File

@ -666,7 +666,7 @@ function this.OnAddRole(data)
if this.isBoss and data.position == 2 then
isBoss = true
end
tbRole[data] = EnemyView.New(go, data, data.position, this, isBoss,this.fightData.enemyId)
tbRole[data] = EnemyView.New(go, data, data.position, this, isBoss, this.fightData and this.fightData.enemyId or nil)
end
go.transform.localScale = Vector3.one
go.transform.localPosition = Vector3.zero