public void grow() { if (!this.ready && (long)Epoch.getSeconds() - this.state > (long)HarvestStats.getGrowth(int.Parse(base.transform.parent.name))) { this.ready = true; base.renderer.material = (Material)Resources.Load(string.Concat("Models/Barricades/", base.transform.parent.name, "/matPlant")); } }
public NodeStats(string Name, HarvestStats Parent) { name = Name; parent = Parent; }