Beispiel #1
0
    protected override void Deactivated()
    {
        _turnSystem.TurnStartedEvent     -= OnTurnStartedEvent;
        _turnSystem.TurnSystemEndedEvent -= OnTurnSysemEndedEvent;
        _turnSystem.ClearTurnTickets();

        for (int i = 0; i < game.GamePlayers.Length; i++)
        {
            game.GamePlayers[i].SkillPouch.SkillSetEvent -= OnSkillSetEvent;
        }
    }
Beispiel #2
0
    protected override void Deactivated()
    {
        _cardInteractionTranslator.CardPlayRequestEvent  -= OnCardPlayRequestEvent;
        _cardInteractionTranslator.DrawCardsRequestEvent -= OnDrawCardsRequestEvent;

        _coinTranslator.CoinRequestEvent -= OnCoinRequestEvent;

        _skillTranslator.SkillUseRequestEvent -= OnSkillUseRequestEvent;

        _conPlayer.RegisteredPlayerDisconnectedEvent -= OnRegisteredPlayerDisconnectedEvent;

        _turnSystem.TurnStartedEvent     -= OnTurnStartedEvent;
        _turnSystem.TurnSystemEndedEvent -= OnTurnSysemEndedEvent;

        _turnSystem.ClearTurnTickets();

        _skillEffects.SkillEffectDoneEvent -= OnSkillEffectDoneEvent;

        for (int i = 0; i < game.GamePlayers.Length; i++)
        {
            game.GamePlayers[i].PlayCardEvent             -= OnPlayCardEvent;
            game.GamePlayers[i].SkillPouch.SkillUsedEvent -= OnSkillUsedEvent;
        }
    }