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);
    }
Example #2
0
    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);
    }
Example #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);
    }
    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);
    }
Example #5
0
    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());
            }
        }
    }
    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);
    }
Example #7
0
 protected override void OnQuit()
 {
     base.OnQuit();
     Unibus.Unsubscribe <EventAircraft>(OnEventAircraft);
     Unibus.Unsubscribe <EventVirus>(OnEventVirus);
 }
Example #8
0
 protected virtual void Disable()
 {
     Unibus.Unsubscribe <string>(ClickOutOfBoardEmmiter.CLICK_OUT_OF_BOARD, OnClickOutOfBoard);
     Unibus.Unsubscribe <string>(ClickOutOfBoardEmmiter.RIGHT_CLICK, OnRightClick);
 }
Example #9
0
 public void Disable()
 {
     Unibus.Unsubscribe <CardDisplay>(PlayerHandDisplay.CARD_SELECTED_TO_PLAY, OnCardSelectedToPlayHandler);
 }