Ejemplo n.º 1
0
    public void StartNewMap()
    {
        //clean up enemies cvurrently spawned
        npcManager.CleanUpEnemies();
        //get new map

        //spawn enemies for each designated spawn location
        npcManager.SpawnEnemiesForNewMap(mapManager.GetCurrentMap());
        //reset player hp

        //fleet ships and base stars are only around during the battles, regular map levels are just the player
        if (inBattle == true)
        {
            StartBattle();
        }
        else
        {
            fleetManager.fleetShips.gameObject.active    = false;
            fleetManager.galactica.gameObject.active     = false;
            enemyFleetManager.baseStar.gameObject.active = false;
            mapManager.StartNewMap(playerManager.myship.transform);
        }
        //reset player ship rotation to the docking ship
        cam.ResetCameraAngle();
    }