Ejemplo n.º 1
0
    IEnumerator PlayEffect()
    {
        Hands H = GameObject.FindWithTag("Hands").GetComponent <Hands>();

        while (H.Busy)
        {
            yield return(null);
        }

        float alpha = 0f;

        while (alpha < 1f)
        {
            Mesh.material.SetFloat("_ClipLerpAlpha", alpha);
            alpha += DissolveSpeed;
            yield return(null);
        }

        H.DeleteActiveItem();
    }