Exemplo n.º 1
0
    public void LoadInitialScene()
    {
        string intitialScene;

        if (startInSpecial)
        {
            intitialScene = ZeldaSceneManager.SPECIAL_SCENE_NAME;
            spawnLocation = special;
        }
        else if (startInDungeon == -1)
        {
            intitialScene = ZeldaSceneManager.GetSceneNameForOverworld();
            if (spawnLocation == null)
            {
                spawnLocation = overworldStart;
            }
        }
        else
        {
            intitialScene = ZeldaSceneManager.GetSceneNameForDungeon(startInDungeon);
            if (spawnLocation == null)
            {
                spawnLocation = GetDungeonEntranceStairsLocation(startInDungeon);
            }
        }

        LoadScene(intitialScene, true, true);
    }
Exemplo n.º 2
0
 public void WarpToDungeonEntranceStairs(int dungeonNum)
 {
     spawnLocation = GetDungeonEntranceStairsLocation(dungeonNum);
     if (WorldInfo.Instance.DungeonNum == dungeonNum)
     {
         WarpPlayerToLocation(spawnLocation);
     }
     else
     {
         LoadScene(ZeldaSceneManager.GetSceneNameForDungeon(dungeonNum), true);
     }
 }
Exemplo n.º 3
0
 public void WarpToGrottoWarpDestination(int warpNum, bool useShutters = true, bool closeShuttersInstantly = false)
 {
     spawnLocation = GetGrottoWarpDestinationLocation(warpNum);
     if (WorldInfo.Instance.IsOverworld)
     {
         WarpPlayerToLocation(spawnLocation, null, useShutters);
     }
     else
     {
         LoadScene(ZeldaSceneManager.GetSceneNameForOverworld(), useShutters, closeShuttersInstantly);
     }
 }
Exemplo n.º 4
0
 public void WarpToOverworldDungeonEntrance(int dungeonNum, bool useShutters = true, bool closeShuttersInstantly = false)
 {
     spawnLocation = GetOverworldDungeonEntranceLocation(dungeonNum);
     if (WorldInfo.Instance.IsOverworld)
     {
         WarpPlayerToLocation(spawnLocation, null, useShutters);
     }
     else
     {
         LoadScene(ZeldaSceneManager.GetSceneNameForOverworld(), useShutters, closeShuttersInstantly);
     }
 }