void Update() { if (Input.GetButtonDown("ESC")) { if (SceneManager.GetActiveScene().buildIndex > 0) { isESC = !isESC; SetEscMenu(isESC); } } //作弊鍵 if (Input.GetKeyDown(KeyCode.Backspace)) { Debug.Log("ClearLevel(100)作弊鍵"); LevelData.ClearLevel(100); } }
public void LevelClear(int level) { LevelData.ClearLevel(level); }