/// <summary> /// Load History from Json /// </summary> /// <param name="narrativeData"></param> public void LoadHistory(string narrativeData) { if (narrativeData == null) { Debug.LogError("Failed to decode History save data item"); return; } history = JsonUtility.FromJson <NarrativeData>(narrativeData); }
protected virtual void Awake() { history = new NarrativeData(); }