示例#1
0
    public IEnumerator dead()
    {
        LightCanvas.SetActive(true);
        lightAnim.Play("FadeIn");
        yield return(new WaitForSeconds(1f));

        lightAnim.Play("FadeOut");
        yield return(new WaitForSeconds(1f));

        LightCanvas.SetActive(false);
    }
示例#2
0
    public IEnumerator updatePerspective()
    {
        LightCanvas.SetActive(true);
        lightAnim.Play("FadeIn");
        yield return(new WaitForSeconds(1f));

        if (curPerspective == Perspective.twoD)
        {
            curPerspective = Perspective.threeD;
        }
        else
        {
            curPerspective = Perspective.twoD;
        }

        updateEnvironment(curPerspective);
        lightAnim.Play("FadeOut");
        yield return(new WaitForSeconds(1f));

        LightCanvas.SetActive(false);
    }