@woosh/meep-engine 2.46.33 → 2.46.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -99976,7 +99976,7 @@ class CompositeBehavior extends Behavior {
99976
99976
  const n = many.length;
99977
99977
  for (let i = 0; i < n; i++) {
99978
99978
  const e = many[i];
99979
- r.addChild(e);
99979
+ this.addChild(e);
99980
99980
  }
99981
99981
  }
99982
99982
 
@@ -125751,7 +125751,7 @@ class SelectorBehavior extends CompositeBehavior {
125751
125751
  this.__currentBehaviourIndex = 0;
125752
125752
  this.__currentBehaviour = children[0];
125753
125753
 
125754
- this.__currentBehaviour.initialize();
125754
+ this.__currentBehaviour.initialize(this.context);
125755
125755
 
125756
125756
  } else {
125757
125757
  // no children
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "description": "Fully featured ECS game engine written in JavaScript",
6
6
  "type": "module",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.46.33",
8
+ "version": "2.46.35",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -90,7 +90,7 @@ export class SelectorBehavior extends CompositeBehavior {
90
90
  this.__currentBehaviourIndex = 0;
91
91
  this.__currentBehaviour = children[0];
92
92
 
93
- this.__currentBehaviour.initialize();
93
+ this.__currentBehaviour.initialize(this.context);
94
94
 
95
95
  } else {
96
96
  // no children
@@ -36,7 +36,7 @@ export class CompositeBehavior extends Behavior {
36
36
  const n = many.length;
37
37
  for (let i = 0; i < n; i++) {
38
38
  const e = many[i];
39
- r.addChild(e);
39
+ this.addChild(e);
40
40
  }
41
41
  }
42
42