title: Ursina update function within class
body: <p>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?</p>
  <pre><code>from ursina import *
  app = Ursina()
  
  class a:
      def update(self):
          print(&quot;a updating&quot;)
  
  class b:
      def update(self):
          print(&quot;b updating&quot;)
  
  a = a()
  b = b()
  
  app.run()
  </code></pre>
  <p>At the moment neither function gets run. Any help is appreciated</p>