コード例 #1
0
    public void onClickStart()
    {
        GameGlobal.getInstance().setTest(player1Name.text + " VS " + player2Name.text);
        List <Player> players        = new List <Player>();
        List <String> characterNames = gameLoader.getCharacterList();
        List <String> itemsNames     = gameLoader.getItemsList();

        players.Add(new Player(
                        player1Name.text,
                        characterNames[player1Select.getCurrCharacter()],
                        itemsNames[player1ItemsSelect.getCurrItem()]
                        ));
        players.Add(new Player(
                        player2Name.text,
                        characterNames[player2Select.getCurrCharacter()],
                        itemsNames[player2ItemsSelect.getCurrItem()]
                        ));
        GameGlobal.getInstance().setGameModel(gameLoader.createGame(players));
        SceneManager.LoadScene(1);
    }