public override ItemTypes OnInteract() { if (!solarPanelSet) { solarPanelSet = true; alert.SetActive(false); toolStore.fill(); Component[] panels = this.GetComponentsInChildren <MeshRenderer>(); foreach (Component panel in panels) { ((MeshRenderer)panel).material.color = new Color(0.2683339f, 0.4018649f, 0.4245283f, 1.0f); } } else { //have tick appear for task completion this.gameObject.SetActive(false); this.truckSolarPanels[activePanels].SetActive(true); activePanels++; solarPanelSet = false; //complete solarPanel Tasks taskController.taskComplete(TaskTypes.Solar); scoreController.taskScored(CityScoreController.Tasks.SOLAR); } PlayInteractSound(); return(ItemTypes.NONE); }
public override void setupTask() { solarShop.fill(); }
public override void setupTask() { signShop.fill(); }