Exemplo n.º 1
0
    /// <summary>
    /// This resets the texture's alpha property
    /// </summary>
    public void ResetTextureAlpha()
    {
        TweenAlpha ta = textureObject.GetComponent <TweenAlpha>();

        if (ta.value == 0)
        {
            textureObject.mainTexture = textureObject2.mainTexture;
        }

        fadeIn.FadeTextureIn(textureObject.GetComponent <TweenAlpha>());
    }