public override void GetReward() { double oreRewardSecondsMining = OreRewardMinutesMining * 60; int rocksDestroyed = GetCurrentRocksDestroyed(oreRewardSecondsMining); OreDropper dropper = GameObject.FindWithTag("Dropper").GetComponent <OreDropper>(); dropper.DropOre(rocksDestroyed); CreateOreRewardText(); }
private void AddRockRewards() { _dropper.DropOre(); GameController.Instance.AddMoney(_reward); }
private static Dictionary <Ore, int> DropOres(int dropAttempts) { OreDropper dropper = GameObject.FindGameObjectWithTag("Dropper").GetComponent <OreDropper>(); return(dropper.DropOre(dropAttempts)); }