/// <summary> /// Update the production status of buildings /// </summary> /// <param name="onOff">The boolean to update the production status to</param> /// <param name="spot">The specific building spot to update</param> public void StopProduction(bool onOff, BuildingSpot spot) { spot.producing = !onOff; stopProduction.SetActive(!onOff); resumeProduction.SetActive(onOff); spot.UpdateVisual(); }