コード例 #1
0
    public void Run(IBattelStateData battel)
    {
        this.battel = battel;
        battel.OnInteractableButtonNextTurn(true);

        battel.Player.ReservCards.ForEach(x => x.SetClickListener(SelectReserveCard));
        battel.Player.Cell.ForEach(x => x.SetClickListener(PutCardFromReserve));
    }
コード例 #2
0
    public void Run(IBattelStateData battel)
    {
        this.battel = battel;

        //Очистить данные
        battel.Player.AttackCards.ForEach(x => x.Warrior.Clear());
        battel.Enemy.AttackCards.ForEach(x => x.Warrior.Clear());

        battel.OnInteractableButtonNextTurn(true);
        battel.Player.AttackCards.ForEach(x => x.SetClickListener(SelectReserveCard));
        battel.Enemy.AttackCards.ForEach(x => x.SetClickListener(AssignAttack));
    }
コード例 #3
0
    public void ReportReadinessPlayer(Action report)
    {
        current?.View.Frame(false);
        battel.OnInteractableButtonNextTurn(false);
        battel.Player.AttackCards.ForEach(x => x.ClearClickListener());
        battel.Enemy.AttackCards.ForEach(x => x.ClearClickListener());

        var cards = new List <int>();

        foreach (var item in battel.Player.AttackCards)
        {
            cards.Add(item.Warrior.AttackTargetID);
        }
        battel.Player.Report = JsonConvert.SerializeObject(cards);

        report.Invoke();
    }