【战斗0.0.4】代码遗漏补齐,
parent
19135670ce
commit
73063a72e3
|
@ -317,6 +317,7 @@ function this.InitBattleEvent()
|
|||
BattleLogic.Event:AddEvent(BattleEventName.BattleEnd, this.EndBattle)
|
||||
BattleLogic.Event:AddEvent(BattleEventName.BattleOrderChange, this.BattleOrderChange)
|
||||
BattleLogic.Event:AddEvent(BattleEventName.BattleRoundChange, this.BattleRoundChange)
|
||||
BattleLogic.Event:AddEvent(BattleEventName.RoleTurnStart, this.RoleTurnChange)
|
||||
|
||||
end
|
||||
-- 清除战斗数据
|
||||
|
@ -327,6 +328,7 @@ function this.ClearBattleEvent()
|
|||
BattleLogic.Event:RemoveEvent(BattleEventName.BattleEnd, this.EndBattle)
|
||||
BattleLogic.Event:RemoveEvent(BattleEventName.BattleOrderChange, this.BattleOrderChange)
|
||||
BattleLogic.Event:RemoveEvent(BattleEventName.BattleRoundChange, this.BattleRoundChange)
|
||||
BattleLogic.Event:RemoveEvent(BattleEventName.RoleTurnStart, this.RoleTurnChange)
|
||||
end
|
||||
|
||||
--敌军出现的表现
|
||||
|
@ -405,12 +407,19 @@ function this.EnemyAppear()
|
|||
end
|
||||
end
|
||||
|
||||
-- 角色轮转回调(不出手的位置不会回调)
|
||||
function this.RoleTurnChange(role)
|
||||
-- 回调UI层
|
||||
if this.root.RoleTurnChange then
|
||||
this.root.RoleTurnChange(role)
|
||||
end
|
||||
end
|
||||
|
||||
-- 回合变化
|
||||
function this.BattleRoundChange(Round)
|
||||
-- 回调UI层
|
||||
this.root.OnRoundChanged(Round)
|
||||
|
||||
|
||||
-- 异妖CD
|
||||
if this.DiffMonsterFlag then
|
||||
local slider = BattleLogic.GetTeamSkillCastSlider(0)
|
||||
|
|
|
@ -153,7 +153,7 @@ function RoleView.New(go, role, position, root)
|
|||
instance.liveRender.transform.localScale = Vector3.one --* instance.play_liveScale * 2
|
||||
instance.liveRender.transform.anchoredPosition = Vector3.zero--Vector2.New(instance.offset[1], instance.offset[2])
|
||||
instance.liveRender.gameObject:SetActive(true)
|
||||
instance.liveRender.material:SetInt("_IsMask", 0)
|
||||
instance.liveRender.material:SetInt("_IsMask", 1)
|
||||
|
||||
instance.RoleLiveGO2.transform:SetParent(instance.RootPanel.mySkillCastRoot.transform)
|
||||
instance.RoleLiveGO2.transform.localScale = Vector3.one * instance.enemy_liveScale -- * 0.75--* 1.5
|
||||
|
|
Loading…
Reference in New Issue