void Update() { if (Input.GetKeyDown(KeyCode.Z)) { SceneManager.LoadScene(""); } else if (Input.GetKeyDown(KeyCode.X)) { GameoverText.action(); animator = GameoverText.ani; Endconfirm("disappear"); SceneManager.LoadScene("Gameselect"); } }
private void Awake() { S = this; this.gameObject.SetActive(false); }