This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Diagnostics; | |
using System.Net; | |
using Microsoft.VisualBasic.FileIO; | |
using Newtonsoft.Json; | |
static void Main() { | |
Stopwatch sw = new Stopwatch(); | |
sw.Start(); | |
var url = "https://raw.githubusercontent.com/hadley/data-baby-names/master/baby-names.csv"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ResourceNode : Workstation | |
{ | |
[SerializeField] private ResourceType resourceType; | |
[SerializeField] private float collectInterval = 30f; | |
[SerializeField] private int supply = 300; | |
private int _currSupply = 300; | |
protected override void Start() { | |
_currSupply = supply; | |
base.Start(); |