16 lines
370 B
C#
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);
|
|
}
|
|
}
|