// Use this for initialization public override void Start() { task = (TemperatureTask)panelController.currentTask; TempBar.fillAmount = (task.CurrentTemp - MIN_TEMP) / 35; SliderMin.value = task.TargetMin; SliderMax.value = task.TargetMax; }
public override Task Create() { TemperatureTask task = new TemperatureTask(); task.InitTaskWithTaskSO(this); task.taskPanel = ShipPanel.Thermostat; return(task); }