public void TillLand() { if (moneyManger.taters >= 200) { tilePos.position = new Vector3(Grid.selectedCell_x + 5, 0, Grid.selectedCell_y + 5); Destroy(Grid.selectedPlane); Instantiate(tilledLandpreFab); moneyManger.changeFunds(-200); gridManager.clearLines(); } }
public void Harvest() { if (grown) { audMan.Play("harvest"); Debug.Log("Harvest Initiated"); float tatersEarned = Random.Range(yieldMin, yieldMax); moneyManager.changeFunds(tatersEarned); grown = false; progress = 0; growAnimation.Play("potatoBegin"); StartCoroutine("growPotatoes"); } }