Esempio n. 1
0
    void Update()
    {
        if (isStart)
        {
            manager.Buttondisable();
            time += Time.deltaTime;
            if (fades < 1.0f && time >= 0.1f)
            {
                fades     += 0.1f;
                fade.color = new Color(0, 0, 0, fades);
                time       = 0;
            }
            else if (fades >= 1.0f)
            {
                if (check)
                {
                    SceneManager.LoadScene("InGame");
                }
                else
                {
                    SceneManager.LoadScene("Ending");
                }

                manager.GameStartdisable();
                isStart = false;
                time    = 0;
            }
        }
    }