Esempio n. 1
0
    // Update is called once per frame
    void Update()
    {
        if (fading)
        {
            float alphaRemaining = countdowntimer.GetProportionTimeRemaining();
            print(alphaRemaining);
            Color c = textUI.material.color;

            c.a = alphaRemaining;
            textUI.material.color = c;

            if (alphaRemaining < 0.01)
            {
                fading = false;
            }
        }
    }