Example #1
0
    public void OutroFadeIn()

    {
        lerpTime += Time.deltaTime;
        PlayerUI.transform.Find("FillScreen").GetComponent <Image>().color = new Color(0, 0, 0, Mathf.Lerp(0, 1, lerpTime / 2.0f));
        mixer.SetFloat("MasterVolume", Mathf.Lerp(0.0f, -40.0f, lerpTime / 2.0f));
        if (lerpTime > 4.0f)
        {
            LoadingInstructions.SetActive(true);
            StartCoroutine(manager.ASyncLoadGame());
            PlayerState = 0;
        }
    }