Event System

The event system is a common feature that needs to be involved in interaction during game development. The event system can be used not only to send input actions (e.g. keyboard, mouse, touch) to the application in the form of events, but also to respond to things that happen during the game that require the attention of other objects in the form of events. For example, opening the checkout or reward screen after a game victory.

Use of Events

Events need to be registered to get listened to. The built-in event listeners in Cocos Creator include the following:

results matching ""

    No results matching ""