Example #1
0
    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);
    }
Example #2
0
    public void GetDialogueFromLevelData(int npcId)
    {
        var npcDialogue = LevelDataHelper.GetOverworldDialogueForNpcInActiveLevel(npcId);

        if (npcDialogue != null)
        {
            dialogue = npcDialogue;
        }
    }
Example #3
0
    private void OnApplicationQuit()
    {
        //  string sessionDataPath = Application.persistentDataPath;
        string saveSession = JsonUtility.ToJson(playerData, true);

        Debug.Log(saveSession);
        File.WriteAllText(placeholder, saveSession);

        LevelDataHelper.Test();
    }