void MineWater() { timestep += timer.GetElapsedSeconds(); // text.text = timestep.ToString(); if (pathDestinations[0] == new Vector2(player.transform.position.x, player.transform.position.y) && (int)timestep >= 11 - mineSkill) { control.Mine(tileRef[0], "water", player); timestep = 0; } if (timestep > 11 - mineSkill) { timestep = 0; } }