示例#1
0
    void Start()
    {
        player = GameObject.Find(PLAYER).GetComponent <Transform>();
        Assert.IsNotNull(player);

        (fadeInViewport = MFX.FadeInViewport(spriteRenderer, fadeInAfter, timeToFadeIn)).Pause();
        (fadeOutViewport = MFX.FadeOutViewport(spriteRenderer, fadeOutAfter, timeToFadeOut)).Pause();

        spriteRenderer.enabled = true;
        FadeInNewLevel();
        GetPlayerPosition();
    }