コード例 #1
0
        public override void GetReward()
        {
            double     oreRewardSecondsMining = OreRewardMinutesMining * 60;
            int        rocksDestroyed         = GetCurrentRocksDestroyed(oreRewardSecondsMining);
            OreDropper dropper = GameObject.FindWithTag("Dropper").GetComponent <OreDropper>();

            dropper.DropOre(rocksDestroyed);
            CreateOreRewardText();
        }
コード例 #2
0
 private void AddRockRewards()
 {
     _dropper.DropOre();
     GameController.Instance.AddMoney(_reward);
 }
コード例 #3
0
    private static Dictionary <Ore, int> DropOres(int dropAttempts)
    {
        OreDropper dropper = GameObject.FindGameObjectWithTag("Dropper").GetComponent <OreDropper>();

        return(dropper.DropOre(dropAttempts));
    }