import bge import FSM class Player: def __init__(self, own): self.owner = own self.FSM = FSM.PlayerFSM(own) self.walking = True def update(self): self.FSM.Execute() def update(cont): #print('-------------player updating----------------') dict = bge.logic.globalDict own = cont.owner if 'player_class' not in dict: #dict['playerFSM'] = FSM.PlayerFSM(own) dict['player_class'] = Player(own) #dict['playerFSM'].Execute() dict['player_class'].update()