コード例 #1
0
    protected override void Disable()
    {
        base.Disable();
        Dialog.instance.HideDialog();

        Unibus.Unsubscribe <UnitDisplay>(BoardCreator.UNIT_CLICKED_ON_BOARD, OnUnitSelectedOnBoard);
        Unibus.Unsubscribe <UnitDisplay>(BoardCreator.UNIT_MOUSE_ENTER_ON_BOARD, OnUnitMouseEnterOnBoard);
        Unibus.Unsubscribe <UnitDisplay>(BoardCreator.UNIT_MOUSE_EXIT_ON_BOARD, OnUnitMouseExitOnBoard);
    }
コード例 #2
0
ファイル: BoardActivities.cs プロジェクト: gamesFTW/card-game
    public void Disable()
    {
        CursorController.SetDefault();

        this.boardCreator.RemoveAllBlinks();
        Unibus.Unsubscribe <UnitDisplay>(BoardCreator.UNIT_CLICKED_ON_BOARD, OnUnitSelectedOnBoard);
        Unibus.Unsubscribe <UnitDisplay>(BoardCreator.UNIT_MOUSE_ENTER_ON_BOARD, OnUnitMouseEnterOnBoard);
        Unibus.Unsubscribe <UnitDisplay>(BoardCreator.UNIT_MOUSE_EXIT_ON_BOARD, OnUnitMouseExitOnBoard);
        Unibus.Unsubscribe <CardDisplay>(PlayerTableDisplay.CARD_SELECTED_ON_TABLE, OnCardClicked);
    }
コード例 #3
0
    protected override void Disable()
    {
        base.Disable();
        this.boardCreator.RemoveAllBlinks();
        Dialog.instance.HideDialog();

        if (this.hoveredTile)
        {
            this.hoveredTile.HighlightOff();
        }

        CursorController.SetDefault();

        Unibus.Unsubscribe <Point>(BoardCreator.CLICKED_ON_VOID_TILE, OnClickedOnVoidTile);
        Unibus.Unsubscribe <TileDisplay>(BoardCreator.TILE_WITHOUT_UNIT_MOUSE_ENTER_ON_BOARD, OnTileMouseEnterOnBoard);
        Unibus.Unsubscribe <TileDisplay>(BoardCreator.TILE_WITHOUT_UNIT_MOUSE_EXIT_ON_BOARD, OnTileMouseExitOnBoard);
        Unibus.Unsubscribe <UnitDisplay>(BoardCreator.UNIT_MOUSE_ENTER_ON_BOARD, OnUnitMouseEnterOnBoard);
        Unibus.Unsubscribe <UnitDisplay>(BoardCreator.UNIT_MOUSE_EXIT_ON_BOARD, OnUnitMouseExitOnBoard);
    }
コード例 #4
0
    private void Disable()
    {
        this.enabled = false;
        this.SelectedCard.Unselect();
        this.SelectedCard = null;
        this.boardCreator.RemoveAllBlinks();

        if (this.hoveredTile)
        {
            this.hoveredTile.HighlightOff();
        }

        Dialog.instance.HideDialog();

        Unibus.Unsubscribe <Point>(TileDisplay.TILE_MOUSE_LEFT_CLICK, OnTileMouseLeftClick);
        Unibus.Unsubscribe <CardDisplay>(CardDisplay.CARD_MOUSE_ENTER, OnCardEnter);
        Unibus.Unsubscribe <CardDisplay>(CardDisplay.CARD_MOUSE_EXIT, OnCardExit);
        Unibus.Unsubscribe <TileDisplay>(BoardCreator.TILE_WITHOUT_UNIT_MOUSE_ENTER_ON_BOARD, OnTileMouseEnterOnBoard);
        Unibus.Unsubscribe <TileDisplay>(BoardCreator.TILE_WITHOUT_UNIT_MOUSE_EXIT_ON_BOARD, OnTileMouseExitOnBoard);
    }
コード例 #5
0
ファイル: Tutorial.cs プロジェクト: gamesFTW/card-game
    private void NextStep()
    {
        if (this.currentStepIndex <= this.tutorialSteps.Length)
        {
            var currentStep = this.GetCurrentStep();
            if (currentStep.stepEvent != null)
            {
                Unibus.Unsubscribe <CardDisplay>(this.GetCurrentStep().stepEvent, this.OnEventHandled);
            }

            if (this.GetCurrentStep().waitBeforeFinish != null)
            {
                StartCoroutine(Countdown((int)currentStep.waitBeforeFinish));
            }
            else
            {
                this.currentStepIndex++;
                this.ShowDialog(this.GetCurrentStep());
            }
        }
    }
コード例 #6
0
    protected override void Disable()
    {
        base.Disable();
        this.boardCreator.RemoveAllBlinks();
        selectedUnit.HideAbilities();

        if (this.hoveredTile)
        {
            this.hoveredTile.HighlightOff();
        }

        CursorController.SetDefault();

        Unibus.Unsubscribe <UnitDisplay>(BoardCreator.UNIT_CLICKED_ON_BOARD, OnUnitSelectedOnBoard);
        Unibus.Unsubscribe <Point>(BoardCreator.CLICKED_ON_VOID_TILE, OnClickedOnVoidTile);
        Unibus.Unsubscribe <UnitDisplay>(BoardCreator.UNIT_MOUSE_ENTER_ON_BOARD, OnUnitMouseEnterOnBoard);
        Unibus.Unsubscribe <UnitDisplay>(BoardCreator.UNIT_MOUSE_EXIT_ON_BOARD, OnUnitMouseExitOnBoard);
        Unibus.Unsubscribe <TileDisplay>(BoardCreator.TILE_WITHOUT_UNIT_MOUSE_ENTER_ON_BOARD, OnTileMouseEnterOnBoard);
        Unibus.Unsubscribe <TileDisplay>(BoardCreator.TILE_WITHOUT_UNIT_MOUSE_EXIT_ON_BOARD, OnTileMouseExitOnBoard);
        Unibus.Unsubscribe <AbilityActivated>(UnitDisplay.ABILITY_ACTIVATED, OnAbilityActivated);
        Unibus.Unsubscribe <CardDisplay>(CardDisplay.CARD_CLICKED, OnCardClicked);
        Unibus.Unsubscribe <CardDisplay>(CardManager.CARD_MOVED, OnCardMoved);
    }
コード例 #7
0
 protected override void OnQuit()
 {
     base.OnQuit();
     Unibus.Unsubscribe <EventAircraft>(OnEventAircraft);
     Unibus.Unsubscribe <EventVirus>(OnEventVirus);
 }
コード例 #8
0
 protected virtual void Disable()
 {
     Unibus.Unsubscribe <string>(ClickOutOfBoardEmmiter.CLICK_OUT_OF_BOARD, OnClickOutOfBoard);
     Unibus.Unsubscribe <string>(ClickOutOfBoardEmmiter.RIGHT_CLICK, OnRightClick);
 }
コード例 #9
0
ファイル: HandActivities.cs プロジェクト: gamesFTW/card-game
 public void Disable()
 {
     Unibus.Unsubscribe <CardDisplay>(PlayerHandDisplay.CARD_SELECTED_TO_PLAY, OnCardSelectedToPlayHandler);
 }