using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; public class travelStationSystem : MonoBehaviour { [Header ("Main Settings")] [Space] public int sceneNumberToLoad; public int levelManagerIDToLoad; public bool allStationsUnlocked; [Space] [Header ("Debug")] [Space] public bool usingTravelStation; [Space] [Header ("Travel Station Info List Settings")] [Space] public List travelStationInfoList = new List (); GameObject currentPlayer; playerComponentsManager mainPlayerComponentsManager; travelStationUISystem currentTravelStationUISystem; public void setCurrentPlayer (GameObject player) { currentPlayer = player; if (currentPlayer != null) { mainPlayerComponentsManager = currentPlayer.GetComponent (); currentTravelStationUISystem = mainPlayerComponentsManager.getTravelStationUISystem (); currentTravelStationUISystem.setCurrentTravelStationSystem (this, true); } } public void activateTravelStation () { usingTravelStation = !usingTravelStation; currentTravelStationUISystem.openOrCloseTravelStationMenu (usingTravelStation); } public void setUsingTravelStationSystemState (bool state) { usingTravelStation = state; } public List getTravelStationInfoList () { return travelStationInfoList; } [System.Serializable] public class travelStationInfo { public string Name; public int sceneNumberToLoad; public int levelManagerIDToLoad; public bool zoneFound; } }