Exemple #1
0
 private void Proceed()
 {
     StartGameSettings.mapSave = MapSaveModel.NewGameSave(selectedCounterpart);
     CanvasPick.SetActive(false);
     CanvasLoad.SetActive(true);
     using (StreamReader sr = new StreamReader(@"Assets/Data/Other/tips.txt"))
     {
         text = sr.ReadToEnd().Split(';');
     }
     tipstxt.text = text[Random.Range(0, text.Length)];
     SceneManager.LoadScene("Game");
 }
Exemple #2
0
    void Start()
    {
        entryManager = new EntryManager();
#if UNITY_EDITOR
        if (StartGameSettings.mapSave == null)
        {
            mapManager.InitWithSave(MapSaveModel.NewGameSave("eeu"));
        }
        else
#endif
        mapManager.InitWithSave(StartGameSettings.mapSave);
        techManager = new TechManager();
        StartCoroutine(ShowEntryPopup());
    }