class LightControllersManager: def __init__(self, vehicle): self.__healthController = HealthController(vehicle.health, vehicle.typeDescriptor.maxHealth) def destroy(self): LightManager.g_instance.setStartupLights() def executeShotLight(self): LightManager.g_instance.startLightEffect("Shot") def executeHitLight(self): LightManager.g_instance.startLightEffect("Hit") def update(self, vehicle): self.__healthController.updateHealth(vehicle.health)
class LightControllersManager: def __init__(self, vehicle): self.__healthController = HealthController(vehicle.health, vehicle.typeDescriptor.maxHealth) def destroy(self): LightManager.g_instance.setStartupLights() def executeShotLight(self): LightManager.g_instance.startLightEffect('Shot') def executeHitLight(self): LightManager.g_instance.startLightEffect('Hit') def update(self, vehicle): self.__healthController.updateHealth(vehicle.health)
def __init__(self, vehicle): self.__healthController = HealthController(vehicle.health, vehicle.typeDescriptor.maxHealth)
def __init__(self, vehicle): self.__healthController = HealthController(vehicle.health, vehicle.maxHealth)