コード例 #1
0
        public void Play()
        {
            //create a new gameObject to tell the game scene how it should play
            GameObject info = new GameObject();

            DontDestroyOnLoad(info);

            info.name = "GameSize";
            GameOption option = info.AddComponent <GameOption>();

            option.SetOption(boards[boardPos]);

            SceneManager.LoadScene("Game");
        }