Перейти к основному содержанию

GameObjectPrototype

Updatable is an object that is notified every tick via it's Updatable.update method call.

Hierarchy

Index

Properties

optionalinit

init?: (...args: any) => void

Function that is called when a new instance of GameObject is created, the engine passes all the arguments of GameObject.deploy function to this function.


Type declaration

    • (...args: any): void
    • Parameters

      • rest...args: any

      Returns void

optionalloaded

loaded?: () => void

Function that is called when a GameObject is loaded.


Type declaration

    • (): void
    • Returns void

optionalremove

remove?: boolean

Once true, the object will be removed from updatables list and will no longer receive update calls.

update

update: () => void

Called every tick.


Type declaration

    • (): void
    • Returns void

Page Options