Exemplo n.º 1
0
    private RatingBattelScene Build(DeckBattleSelector deckBattleSelector)
    {
        deckBattleSelector.Build(transform, Connect);

        timerNextTurn = Instantiate <TimerBattel>(Resources.Load <TimerBattel>("BattleScene/TimerBattelPvP"));
        timerNextTurn.transform.SetParent(transform, false);
        Battel.ActiveTimerBattel         += timerNextTurn.SetActive;
        timerNextTurn.ExecuteBlockButton += SetInteractableButtonNextTurn;
        timerNextTurn.Execute            += NextTurn;

        return(this);
    }
Exemplo n.º 2
0
    [HideInInspector] public bool isEnemyCameOut = false; // Враг вышел из боя(досрочно) Ему будет засчитано поражение(если isStartBattel = true)

    public static RatingBattelScene CreatPrefab(IBattel battelData, IUserData player, DeckBattleSelector deckBattleSelector,
                                                BattelFieldFactory battelFieldFactory, ICardFactory <IAttackCard> cardFactory) =>
    (Instantiate(Resources.Load <RatingBattelScene>($"BattleScene/RatingBattelScene")).Initialize(battelData, player,
                                                                                                  battelFieldFactory, cardFactory) as RatingBattelScene)
    .Build(deckBattleSelector);