37 lines
890 B
C#
37 lines
890 B
C#
using Framework;
|
|
using UnityEngine;
|
|
using UnityEngine.Timeline;
|
|
|
|
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");
|
|
}
|
|
|
|
}
|
|
|
|
public void SendEventToEventManager()
|
|
{
|
|
EventManager.Instance.Send(EventManager.EventName.INFIGHT_PLAYER_SKILL_VIEW_TRIGGER);
|
|
}
|
|
|
|
}
|
|
}
|