Type alias EventOnFunction

EventOnFunction: ((event) => void)

Function for handling user input

Type declaration

    • (event): void
    • Parameters

      • event: Event | GameObject

        The event that triggered the function. If the input listens for keyboard input, this is an Event object, otherwise it is the GameObject that was clicked.

      Returns void

Generated using TypeDoc