public void StartMainPlanet() { Events.Instance.AddListener <OnEndPlanetCreation>(OnEndCreation); FtueManager.instance.ForceClear(); PARTY_TYPE = EPartyType.NEW; EarthManager.Instance.playingPlanetName = EarthManager.Instance.planetName; PlanetSave.LoadPlayer(EarthManager.Instance.playingPlanetName); PlanetSave.LoadCitizens(EarthManager.Instance.playingPlanetName); PlanetSave.LoadPNJs(EarthManager.Instance.playingPlanetName); EarthManager.Instance.playerPositions = PlanetSave.DeserializePlayerPositions(PlanetSave.BasePlayerPos); EarthManager.Instance.CreatePlanet(); }
public void OnClickOnStartButton() { Events.Instance.AddListener <OnEndPlanetCreation>(OnEndCreation); FtueManager.instance.Display(false); FtueManager.instance.Restart(); PARTY_TYPE = EPartyType.NEW; EarthManager.Instance.playingPlanetName = EarthManager.Instance.ftuePlanetName; PlanetSave.LoadPlayer(EarthManager.Instance.playingPlanetName); PlanetSave.LoadPNJs(EarthManager.Instance.playingPlanetName); EarthManager.Instance.playerPositions = PlanetSave.DeserializePlayerPositions(PlanetSave.BasePlayerPos); EarthManager.Instance.CreatePlanet(); }
public void OnClickOnContinueButton() { PARTY_TYPE = EPartyType.SAVE; if (!FtueManager.instance.Finish) { FtueManager.instance.ForceClear(); } Events.Instance.AddListener <OnEndPlanetCreation>(OnEndCreation); InventoryPlayer.Instance.Load(); List <SavePlayerPosition> players; ArrayExtensions.ToList(PlanetSave.GameStateSave.SavedPlayers, out players); EarthManager.Instance.playerPositions = PlanetSave.DeserializePlayerPositions(players); EarthManager.Instance.playingPlanetName = EarthManager.Instance.planetName; PlanetSave.LoadPlayer(EarthManager.Instance.playingPlanetName); PlanetSave.LoadCitizens(EarthManager.Instance.playingPlanetName); PlanetSave.LoadPNJs(EarthManager.Instance.playingPlanetName); EarthManager.Instance.CreatePlanet(); }