GameEventListener


Declaration

public class GameEventListener : MonoBehaviour

Description

Listens for a custom game event to be raised and invokes a Unity event in response.

Properties

EventThe game event to listen to.
ResponseThe Unity event invoked in response to the event being raised.

Methods

OnEnableA Unity lifecycle method called when the behavior is enabled.
OnDisableA Unity lifecycle method called when the behavior is disabled.
OnEventRaisedA callback invoked when the event is raised.