def enterGolfKartBlock(self, golfKart): base.localAvatar.laffMeter.start() base.localAvatar.b_setAnimState('off', 1) self.accept(self.golfKartDoneEvent, self.handleGolfKartDone) self.trolley = GolfKart.GolfKart(self, self.fsm, self.golfKartDoneEvent, golfKart.getDoId()) self.trolley.load() self.trolley.enter()
def enterGolfKartBlock(self, golfKart): assert (self.notify.debug("enterGolfKartBlock()")) # Turn on the laff meter base.localAvatar.laffMeter.start() # clear the anim state base.localAvatar.b_setAnimState("off", 1) self.accept(self.golfKartDoneEvent, self.handleGolfKartDone) #self.trolley = GolfKart.GolfKart(self, self.fsm, self.golfKartDoneEvent, golfKart.golfCourse) self.trolley = GolfKart.GolfKart(self, self.fsm, self.golfKartDoneEvent, golfKart.getDoId()) self.trolley.load() self.trolley.enter()