In a project I am working on, I have multiple classes in which I wish to each have an update function when an object is created. How do I get these update functions to run every frame? i.e for this example code, how do I get both class a and b to run update functions?
from ursina import *
app = Ursina()
class a:
def update(self):
print("a updating")
class b:
def update(self):
print("b updating")
a = a()
b = b()
app.run()
At the moment neither function gets run. Any help is appreciated