BlueGit

blue-star speeltuin

Files

speeltuin / src / chaoBehaviour / chaoBehaviour.js

chaoBehaviour.js

0b47e9e9 History
chaoBehaviour.js 358 B Download Raw
1class ChaoBehaviour
2{
3 constructor()
4 {
5 Chao.Instance.registerBehaviour(this);
6 }
7
8 startBehaviour()
9 {
10 //override this to allow the Chao to start this behaviour
11 }
12
13 endBehaviour()
14 {
15 //make sure to call this so the Chao knows it can queue up another thing.
16 Chao.Instance.behaviourCompleted();
17 }
18}