def update(self): Physics.instance().update() if not self.is_updating: pass index = 0 self._update_list_game_object() for game_object in self._game_objects.values(): if not game_object.is_updating: continue try: game_object.update() except: errorutils.handle_exception() index += 1