示例#1
0
    IEnumerator FadeAndLoad()
    {
        CoderBlackout.FadeOut();
        yield return(new WaitForSeconds(1f));

        Application.LoadLevel("MenuScene");
    }
示例#2
0
    void Awake()
    {
        instance = this;
        Rect screen = new Rect(0, 0, Screen.width, Screen.height);

        guiTexture.pixelInset = screen;
    }