import bge import FSM def update(cont): #print('-------------player updating----------------') dict = bge.logic.globalDict own = cont.owner if 'playerFSM' not in dict: dict['playerFSM'] = FSM.PlayerFSM(own) dict['playerFSM'].Execute()