Пример #1
0
 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);
 }
Пример #2
0
 public override void setupTask()
 {
     solarShop.fill();
 }
Пример #3
0
 public override void setupTask()
 {
     signShop.fill();
 }