diff --git a/Assets/Scripts/BerryBush.cs b/Assets/Scripts/BerryBush.cs index 41be4922af2e3138dbc4989e84a2611440528340..fab98963e5170604ad5ee99422d55dfc71201525 100644 --- a/Assets/Scripts/BerryBush.cs +++ b/Assets/Scripts/BerryBush.cs @@ -5,15 +5,33 @@ using UnityEngine; public class BerryBush : Resource { + private float growthspeed; + public override void checkExistence() { } + public override void refreshSprite() + { + + } + // Start is called before the first frame update void Start() { - + resources = Random.Range(50, 200); + growthspeed = 1; + StartCoroutine("Grow"); + } + + IEnumerator Grow() + { + while (resources < 500) + { + resources++; + yield return new WaitForSeconds(growthspeed); + } } // Update is called once per frame diff --git a/Assets/Scripts/Outcrop.cs b/Assets/Scripts/Outcrop.cs index 1495d0668d7ae0fcccb24a001b26929c2fae4004..c89d689992d547b8cd1de695f5653952984a80e1 100644 --- a/Assets/Scripts/Outcrop.cs +++ b/Assets/Scripts/Outcrop.cs @@ -12,6 +12,11 @@ public class Outcrop : Resource } } + public override void refreshSprite() + { + + } + // Start is called before the first frame update void Start() { diff --git a/Assets/Scripts/Quarry.cs b/Assets/Scripts/Quarry.cs index d15039e99536a88aa7b46b3bd239c40e6fca72c8..07199d7c4cfd739ab29be5bd2193e398464ed881 100644 --- a/Assets/Scripts/Quarry.cs +++ b/Assets/Scripts/Quarry.cs @@ -12,6 +12,12 @@ public class Quarry : Resource Destroy(gameObject); } } + + public override void refreshSprite() + { + + } + // Start is called before the first frame update void Start() {