new Behaviour(name, Init, Update)
Creates a new Behaviour
Parameters:
Name | Type | Default | Description |
---|---|---|---|
name | string | New Behaviour | Name of the Behaviour |
Init | function | Function called when the Behaviour is created | |
Update | function | Function called every frame |