2025-02-25 21:54:18 +08:00

16 lines
370 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
[CreateAssetMenu(menuName = "Event/CharacterEventSO")]
public class CharacterEventSO : ScriptableObject
{
public UnityAction<Character> OnEventRaised;
public void RaiseEvent(Character character)
{
OnEventRaised?.Invoke(character);
}
}