public class PN_LockHp : ProcessNode
|
{
|
public PN_LockHp(GA_NpcClientFightNorm npc, int per)
|
{
|
m_Target = npc;
|
intParam = per;
|
}
|
public override void Init()
|
{
|
if (intParam <= 0)
|
{
|
m_Target.LockHp(0);
|
#if UNITY_EDITOR
|
if (RuntimeLogUtility.s_LogProcessInfo)
|
{
|
UnityEngine.Debug.LogFormat("解除锁定血量");
|
}
|
#endif
|
}
|
else
|
{
|
m_Target.LockHp(intParam * Constants.F_BETA);
|
#if UNITY_EDITOR
|
if (RuntimeLogUtility.s_LogProcessInfo)
|
{
|
UnityEngine.Debug.LogFormat("开始锁定血量: {0}", intParam * Constants.F_BETA);
|
}
|
#endif
|
}
|
}
|
|
public override bool IsOver()
|
{
|
return true;
|
}
|
|
public override void UnInit()
|
{
|
}
|
|
public override void Update()
|
{
|
}
|
}
|