| 1 | class ChaoBehaviour |
| 2 | { |
| 3 | constructor () |
| 4 | { |
| 5 | |
| 6 | } |
| 7 | |
| 8 | startBehaviour () |
| 9 | { |
| 10 | //override this to allow the Chao to start this behaviour |
| 11 | } |
| 12 | |
| 13 | update (deltaTime) |
| 14 | { |
| 15 | |
| 16 | } |
| 17 | |
| 18 | endBehaviour () |
| 19 | { |
| 20 | //make sure to call this so the Chao knows it can queue up another thing. |
| 21 | Chao.Instance.endBehaviour(); |
| 22 | } |
| 23 | } |