【测试战斗】报错修复
parent
f01889db21
commit
d1ce54c9a9
|
@ -666,7 +666,7 @@ function this.OnAddRole(data)
|
||||||
if this.isBoss and data.position == 2 then
|
if this.isBoss and data.position == 2 then
|
||||||
isBoss = true
|
isBoss = true
|
||||||
end
|
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
|
end
|
||||||
go.transform.localScale = Vector3.one
|
go.transform.localScale = Vector3.one
|
||||||
go.transform.localPosition = Vector3.zero
|
go.transform.localPosition = Vector3.zero
|
||||||
|
|
Loading…
Reference in New Issue