BlueGit

blue-star speeltuin

renames

timfa Tim · pushed by timfa

Authored 2022-10-19 · 4 years ago

Hash
774ee8144d711207503a99e4b8ad9924eda840a0
Parent
2e0a4fb1
1 file changed +7 −2
src/chaoBehaviour/chaoBehaviour.js src/chaoBehaviour/base/chaoBehaviour.js renamed +7 −2
@@ -2,7 +2,7 @@ class ChaoBehaviour
2 2 {
3 3 constructor()
4 4 {
5 Chao.Instance.registerBehaviour(this);
5
6 6 }
7 7
8 8 startBehaviour()
@@ -10,9 +10,14 @@ class ChaoBehaviour
10 10 //override this to allow the Chao to start this behaviour
11 11 }
12 12
13 update(deltaTime)
14 {
15
16 }
17
13 18 endBehaviour()
14 19 {
15 20 //make sure to call this so the Chao knows it can queue up another thing.
16 Chao.Instance.behaviourCompleted();
21 Chao.Instance.endBehaviour();
17 22 }
18 23 }
@@ -2,7 +2,7 @@ class ChaoBehaviour
2{
2{
3 constructor()
3 constructor()
4 {
4 {
5 Chao.Instance.registerBehaviour(this);
5
6 }
6 }
7
7
8 startBehaviour()
8 startBehaviour()
@@ -10,9 +10,14 @@ class ChaoBehaviour
10 //override this to allow the Chao to start this behaviour
10 //override this to allow the Chao to start this behaviour
11 }
11 }
12
12
13 update(deltaTime)
14 {
15
16 }
17
13 endBehaviour()
18 endBehaviour()
14 {
19 {
15 //make sure to call this so the Chao knows it can queue up another thing.
20 //make sure to call this so the Chao knows it can queue up another thing.
16 Chao.Instance.behaviourCompleted();
21 Chao.Instance.endBehaviour();
17 }
22 }
18}
23}