11 lines
260 B
C#
11 lines
260 B
C#
using System;
|
|
|
|
namespace CharacterSystem
|
|
{
|
|
public static class EventBus
|
|
{
|
|
public static event Action<GameEvent> OnGameEvent;
|
|
public static void TriggerEvent(GameEvent gameEvent)
|
|
=> OnGameEvent?.Invoke(gameEvent);
|
|
}
|
|
} |