private void CheckHighestEarnedCrop(Harvest tile, int moneyCrop) { if (moneyCrop > highestEarningCropVal) { highestEarningCropVal = moneyCrop; highEarningCropName = tile.GetComponent <Image>().sprite.name; } }
private void CheckHighestEarnedCrop(Harvest tile, int moneyCrop) { if (moneyCrop > highestEarningCropVal) { highestEarningCropVal = moneyCrop; highEarningCropName = tile.GetComponent <Image>().sprite.name; } }