예제 #1
0
        private void GetHistoryInfoFromStore(IStore store)
        {
            if (!saveAndRestoreChat)
            {
                return;
            }

            if (store.ContainsKey(HistoryFileKey))
            {
                var path = store[HistoryFileKey];
                LoadHistoryFromFile(path);
            }
            else
            {
                store.AddOrReplace(HistoryFileKey, Path.Combine(Application.persistentDataPath, "chatHistory.txt"));
            }
        }