コード例 #1
0
 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");
     }
 }
コード例 #2
0
 private void Awake()
 {
     S = this;
     this.gameObject.SetActive(false);
 }