コード例 #1
0
        public void CreateOnlyPlanet()
        {
            StreamingAssetAccessor.Platform = RuntimePlatform.WindowsPlayer;
            TextManager.SetLanguage(SystemLanguage.English);
            ResourcesManager.Instance.Init();

            if (ftuePlanetName != string.Empty)
            {
                GameManager.PARTY_TYPE = EPartyType.NEW;
                playingPlanetName      = ftuePlanetName;
                PlanetSave.LoadCitizens(playingPlanetName);
                PlanetSave.LoadPlayer(playingPlanetName);
                PlanetSave.LoadPNJs(playingPlanetName);
                CreatePlanet();
            }
            else if (planetName != string.Empty)
            {
                GameManager.PARTY_TYPE = EPartyType.NEW;
                playingPlanetName      = planetName;
                PlanetSave.LoadCitizens(playingPlanetName);
                PlanetSave.LoadPlayer(playingPlanetName);
                PlanetSave.LoadPNJs(playingPlanetName);
                CreatePlanet();
            }
        }
コード例 #2
0
 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();
 }
コード例 #3
0
 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();
 }
コード例 #4
0
    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();
    }