public void Plant() { Status = PlantStatus.Planted; var plantIndex = plantTypes.GetRandomPlantIndex(); plant = plantTypes.GetPlant(plantIndex); PlayerPrefs.SetInt(PlantPref(), gameManager.GamesPlayed + 1); PlayerPrefs.SetInt(PlantPref() + "-type", plantIndex); PlayerPrefs.Save(); }