If I had code structured like in the example below, shouldn’t the update() method from the Child class execute on update() of the Scene?
class ParentClass extends Phaser.Physics.Arcade.Sprite {
constructor (a)
{
super(a);
scene.sys.updateList.add(this);
//stuff
}
//more stuff
}
class Child extends Parent {
constructor (b)
{
super(b);
//stuff
}
update (time, delta)
{
console.log('Updating!');
//more stuff
}
}
class Scene extends Phaser.Scene {
//all the other stuff
create ()
{
let c = true;
this.obj = new Child(c);
}
update (time, delta)
{
//nothing
}
}