少年修仙传客户端代码仓库
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using System;
using vnxbqy.UI;
 
public class PN_ShowSkillTip : ProcessNode
{
    private bool m_IsCompelete = false;
    public PN_ShowSkillTip(int id)
    {
        intParam = id;
    }
 
    public override void Init()
    {
        m_IsCompelete = false;
        var _config = bossSkillTipsConfig.Get(intParam);
        if (_config != null)
        {
            BossNotify.Notify(_config.SkillID);
            BossNotify.OnNotifyStateEvent -= OnNotifyCompelete;
            BossNotify.OnNotifyStateEvent += OnNotifyCompelete;
        }
 
        if (intParam == 10200)
        {
            SoundPlayer.Instance.PlayNpcAudio(825);
        }
 
#if UNITY_EDITOR
        if (RuntimeLogUtility.s_LogProcessInfo)
        {
            UnityEngine.Debug.LogFormat("显示技能提示: {0}", intParam);
        }
#endif
    }
 
    private void OnNotifyCompelete(int id, bool ok)
    {
        if (id == intParam)
        {
            if (!ok)
            {
                m_IsCompelete = true;
            }
        }
    }
 
    public override bool IsOver()
    {
        return m_IsCompelete;
    }
 
    public override void UnInit()
    {
        BossNotify.OnNotifyStateEvent -= OnNotifyCompelete;
    }
 
    public override void Update()
    {
    }
}