GameEventBase

abstract class GameEventBase : ScriptableObject

A ScriptableObject representing a global event. Base class for GameEvents with and without parameter.

Properties

onRaise : SodaEvent

This event is invoked when the GameEvent is raised. For parameterized GameEvents, use this event to register responses that ignore the parameter.

Methods

SodeEventBase GetOnRaiseBase()

Returns the onRaise SodaEvent. This can be used to have a list of GameEvents of different types, and adding parameterless responses to all of them.


GameEventBase<T>

abstract class GameEventBase<T> : GameEventBase

A ScriptableObject representing a global event with a parameter.

Methods

void Raise(T parameter)

Call this method to raise the event, leading to all added responses being invoked.