private void Update() { if (genes.GetAllGenes().Count > 0) { if (delta > genes.GrowthTime()) { delta = 0; if (watered) { GrowingUp(); } } AddTime(Time.deltaTime); } }
private void Update() { if (genes.GetAllGenes().Count > 0) { if (delta > genes.GrowthTime()) { delta = 0; if (watered && weeded) { GrowingUp(); } } delta += Time.deltaTime; } }