Exemplo n.º 1
0
    // RENDER
    private void Update()
    {
        if (_currentBattleIndex <= _lastCurrentBattleIndex)
        {
            return;
        }

        _heroes            = HeroService.LoadHeroesInBattle(_currentBattle)?.ToList();
        _currentHeroIndex  = 0;
        _currentEnemyIndex = 0;

        _enemies = _currentBattle.enemies;

        DrawSpriteToGameObject(_currentBattle.background, "Background");

        DrawEnemy();
        DrawMenu();

        BackgroundSoundManager.Play(_currentBattle.backgroundSound);

        _lastCurrentBattleIndex = _currentBattleIndex;
    }