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); }
public void WarpToDungeonEntranceStairs(int dungeonNum) { spawnLocation = GetDungeonEntranceStairsLocation(dungeonNum); if (WorldInfo.Instance.DungeonNum == dungeonNum) { WarpPlayerToLocation(spawnLocation); } else { LoadScene(ZeldaSceneManager.GetSceneNameForDungeon(dungeonNum), true); } }
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); } }
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); } }