Пример #1
0
    void StartBattle(PetSnapshot player, PetSnapshot opponent)
    {
        this.player = player;
        this.enemy  = opponent;

        orderTime = fightPhaseDuration / orderSize;

        turn = 0;


        InitializeVisualPets();

        // Initialize UI
        uiManager.UpdatePlayerStrength(player.Strength);
        uiManager.UpdateEnemyStrength(enemy.Strength);
        uiManager.SetOrders(orderSize);

        StartOrderPhase();
    }