Game Events - GhooTS/GTScriptableVariable GitHub Wiki
Game Events
Game events are scriptable objects that can be raise from code or by UnityEvent in editor. Every game event contain list of listeners which will be call whenever event is raise. The purpose of game event is to decouple event caller from event receiver.
By default there are 5 different Game Events
for each Game Event
there is corresponding Listener
. The zero argument Listener
can subscribe to any type of Game Event
.
- GameEvent
- IntGameEvent
- FloatGameEvent
- BoolGameEvent
- StringGameEvent
You can create more game event types with Class Creator or from code.
Creating game events
All Game Events
can be create from project context menu
Variables path : Create > ScriptableVars > Events