private void GameSet(int winplayer) { turnOBJ1.gameObject.SetActive(false); turnOBJ2.gameObject.SetActive(false); if (winplayer == 0) { Debug.Log("draw!"); } else { Debug.Log(winplayer + "P win!"); if (winplayer == 1) { p1win.SetActive(true); } if (winplayer == 2) { p2win.SetActive(true); } } gameset = true; fade.SetchangesceneKey("title"); fade.Setfadeout(true); }
public void GameStart() { fade.SetchangesceneKey("gamescene"); fade.Setfadeout(true); // SceneManager.LoadScene("gamescene"); }