コード例 #1
0
    private void onMoveButtonClick()
    {
        moveArrow = EntityManager.instantiateMoveArrow();
        moveArrow.init(board, currentPlayer, team.numMoves, team.numMoves, false, true);

        moveArrow.onClick  += moveTo;
        moveArrow.onCancel += cancelMove;
    }
コード例 #2
0
    private void onShootButtonClick()
    {
        moveArrow = EntityManager.instantiateMoveArrow();
        moveArrow.init(board, currentPlayer, currentPlayer.playerData.level, 1, true, false);

        moveArrow.onClick  += shootTo;
        moveArrow.onCancel += cancelShoot;
    }