NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/GameWrapper/CmpPlayerSkillEventWrapper.cs

37 lines
890 B
C#
Raw Normal View History

2023-12-12 12:49:49 +08:00
using Framework;
using UnityEngine;
using UnityEngine.Timeline;
2023-12-12 12:49:49 +08:00
namespace Gameplay.PlayerSkill.Cmp
{
public class CmpPlayerSkillEventWrapper : MonoBehaviour
{
[HideInInspector]
public SignalReceiver m_SignalReceiver;
public static CmpPlayerSkillEventWrapper instance { get; private set; }
private void Awake()
{
DontDestroyOnLoad(gameObject);
instance = this;
m_SignalReceiver = GetComponent<SignalReceiver>();
if (m_SignalReceiver == null)
{
DebugUtil.LogError("CmpPlayerSkillEventWrapper: SignalReceiver is null");
}
}
2023-12-12 12:49:49 +08:00
public void SendEventToEventManager()
{
EventManager.Instance.Send(EventManager.EventName.INFIGHT_PLAYER_SKILL_VIEW_TRIGGER);
}
}
}