private void AtemptInfect(Disease disease, Plant plant, float chance) { if (plant.AttemptInfection(disease, chance)) { Debug.Log(string.Format("{0} infected with {1}", plant.name, disease.name)); GameObject infection = Instantiate(infectionPrefab, new Vector3(0, 0, 0), Quaternion.identity); infection.GetComponent <Infection>().plant = plant; infection.GetComponent <Infection>().disease = disease; infection.transform.parent = infectionsParent.transform; //disease.infectionChance = 0; // debug } }