示例#1
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Escape))
     {
         LoadScreen.LoadLevel("Menu");
     }
 }
示例#2
0
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            LoadScreen.LoadLevel("Dungeon");
        }

        if (Input.GetKeyDown(KeyCode.Escape))
        {
            Application.Quit();
        }
    }
示例#3
0
 public void NewGame()
 {
     PlayerPrefs.DeleteAll();
     DB.LoadData(1);
     Loader.LoadLevel(1);
 }