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

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

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

        LevelDataHelper.Test();
    }