dino-ge
    Preparing search index...

    Component that allows an entity to emit and listen for local events.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    gameObject?: default

    Reference to the GameObject this component is attached to.

    Methods

    • Stops listening for a local event.

      Parameters

      • type: string

        The event type.

      • callback: (event: CustomEvent) => void

        The function to remove.

      Returns void

    • Listens for a local event on this entity.

      Parameters

      • type: string

        The event type.

      • callback: (event: CustomEvent) => void

        The function to run when the event occurs.

      Returns void