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"); }
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()); }