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