コード例 #1
0
    public void LaunchOnePlayerMode()
    {
        string playerType = PlayerTypeConstants.PLAYER_HUMAN;

        ApplicationUtils.playerNumber = 1;
        ApplicationUtils.AffectPlayer((int)PlayerEnum.PlayerId.PLAYER_1, playerType);
        this.LaunchGame(SceneConstants.SCENE_NAME_ONE_PLAYER_MODE);
    }
コード例 #2
0
    private void ManagePlayerAffectation(int playerId, bool isAtTheMiddle)
    {
        string playerType = PlayerTypeConstants.PLAYER_HUMAN;

        if (isAtTheMiddle)
        {
            playerType = PlayerTypeConstants.PLAYER_COMPUTER;
        }

        ApplicationUtils.AffectPlayer(playerId, playerType);
    }