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();
    }
Beispiel #2
0
    void StartBattle(PetSnapshot player, PetSnapshot opponent)
    {
        this.player = player;
        this.enemy  = opponent;

        playerStartHealth = playerHealth;
        enemyStartHealth  = enemyHealth;

        InitializeVisualPets();

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

        fightTimer   = 0f;
        fightStarted = true;

        CalculateNextAttack(player);
        CalculateNextAttack(enemy);
    }