少年修仙传客户端代码仓库
hch
2025-06-12 204ef05a831c9484e2abc561d27ecbff7c797453
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
public class PN_HpPer : ProcessNode
{
    private float m_Per;
 
    public PN_HpPer(GA_NpcClientFightNorm npc, int per)
    {
        m_Target = npc;
        intParam = per;
        m_Per = intParam * Constants.F_BETA;
    }
 
    public override void Init()
    {
#if UNITY_EDITOR
        if (RuntimeLogUtility.s_LogProcessInfo)
        {
            UnityEngine.Debug.LogFormat("开始等待血量下降到: {0}", m_Target.ActorInfo.RealMaxHp * m_Per);
        }
#endif
    }
 
    public override bool IsOver()
    {
        return m_Target.ActorInfo.RealHp <= (ulong)(m_Target.ActorInfo.RealMaxHp * m_Per);
    }
 
    public override void UnInit()
    {
#if UNITY_EDITOR
        if (RuntimeLogUtility.s_LogProcessInfo)
        {
            UnityEngine.Debug.LogFormat("血量下降到: {0} 了", m_Target.ActorInfo.RealHp);
        }
#endif
    }
 
    public override void Update()
    {
    }
}