public static IEnumerator shrink(GameObject vortex) { labelIsSet = false; float x = 1; while (x > 0) { x -= 0.04f; yield return new WaitForSeconds(0.005f); } Destroy(vortex); }