public void ActivateLevel() { levelData = LevelDataHelper.GetLevelDataById(levelId); overworldDialogue = levelData.GenericLevelDialogue.ToDictionary(k => k.npcId, k => k.dialogue); Information = $"({levelData.LevelId}){levelData.LevelName}. Contains {levelData.OrdersInLevel.Length} order(s) to fulfill."; LevelDataHelper.SetActiveLevel(this); }
public void GetDialogueFromLevelData(int npcId) { var npcDialogue = LevelDataHelper.GetOverworldDialogueForNpcInActiveLevel(npcId); if (npcDialogue != null) { dialogue = npcDialogue; } }
private void OnApplicationQuit() { // string sessionDataPath = Application.persistentDataPath; string saveSession = JsonUtility.ToJson(playerData, true); Debug.Log(saveSession); File.WriteAllText(placeholder, saveSession); LevelDataHelper.Test(); }