Vortex.shrink C# (CSharp) Method

shrink() public static method

public static shrink ( GameObject vortex ) : IEnumerator
vortex GameObject
return IEnumerator
    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);
    }