private IEnumerator Petrify() { animationController.Play("Petrify Animation"); yield return(new WaitForSeconds(1)); chance = Random.Range(1, 3); switch (chance) { case 1: paladinController.SetIsPetrified(true); paladinController.StartCoroutine(paladinController.Petrified()); break; case 2: valkyrieController.SetIsPetrified(true); valkyrieController.StartCoroutine(valkyrieController.Petrified()); break; case 3: sageController.SetIsPetrified(true); sageController.StartCoroutine(sageController.Petrified()); break; } petrifyCount = 0; }