public void LoadBattleFromMap(MapSquare currentSquare)
    {
        MapGrid mapGrid = FindObjectOfType <MapGrid>();

        currentBattle = Instantiate(battleData);
        currentBattle.SetCharacterData(currentRunner, currentHacker);
        currentBattle.GetDataFromMapSquare(currentSquare);
        currentBattle.GetPowerUpDataFromMap(FindObjectOfType <MapData>());
        currentBattle.SetMapGrid(mapGrid);
        currentBattle.LoadModifiersFromMap(currentBattle.GetMapSquare().GetPackageOfModifiers());

        //SceneManager.LoadScene(battleSceneName);
        Transitioner.Instance.TransitionToScene(battleSceneName);

        StartCoroutine(WaitForBattleLoad(battleSceneName));
    }
    public void LoadMapFromBattle()
    {
        MapGrid mapGrid = FindObjectOfType <BattleData>().GetMapGrid();

        //SceneManager.LoadScene(mapSceneName);
        Transitioner.Instance.TransitionToScene(mapSceneName);

        BattleData previousBattle = FindObjectOfType <BattleData>();

        currentMap = FindObjectOfType <MapData>();
        currentMap.TrackDefeatedEnemy();
        currentMap.RemoveFromTemporaryCardIds(previousBattle.GetTemporaryCardsToDestroyList());

        MapSquare currentSquare = previousBattle.GetMapSquare();

        currentSquare.DespawnEnemy();

        Destroy(previousBattle.gameObject);

        StartCoroutine(WaitForMapToLoadFromBattle(mapGrid, currentSquare));
    }