Behaviour# Behaviour

new Behaviour(name, Init, Update)

Creates a new Behaviour

Parameters:
NameTypeDefaultDescription
namestringNew Behaviour

Name of the Behaviour

Initfunctionnull

Function called when the Behaviour is created

Updatefunctionnull

Function called every frame