| 1 | class 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 | } |