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()
|
{
|
}
|
}
|