浏览代码

Remove test debugging

/main
uChema 3 年前
当前提交
62ba1135
共有 3 个文件被更改,包括 5 次插入5 次删除
  1. 2
      UOP1_Project/Assets/Scenes/Menus/MainMenu.unity
  2. 3
      UOP1_Project/Assets/Scripts/Quests/QuestManagerSO.cs
  3. 5
      UOP1_Project/Assets/Scripts/SaveSystem/FileManager.cs

2
UOP1_Project/Assets/Scenes/Menus/MainMenu.unity


m_Script: {fileID: 11500000, guid: 45ecefb9fe27f1f4b8cf3ecc3fad707c, type: 3}
m_Name:
m_EditorClassIdentifier:
_locationsToLoad: {fileID: 11400000, guid: 1514f833150a79e4c9d242f58bdbcbc0, type: 2}
_locationsToLoad: {fileID: 11400000, guid: 2f386bbc670c05145834a0f9c7d55798, type: 2}
_showLoadScreen: 1
_saveSystem: {fileID: 11400000, guid: edc355c4a7d5028408d322b90814e19e, type: 2}
_startGameEvent: {fileID: 11400000, guid: 00e3063edc5902e40832ea618644c597, type: 2}

3
UOP1_Project/Assets/Scripts/Quests/QuestManagerSO.cs


//start Step
_currentStepIndex = 0;
_currentStepIndex = _currentQuest.Steps.FindIndex(o => o.IsDone == false);
Debug.Log("Step " + _currentStepIndex);
Debug.Log("Step done" + _currentQuest.Steps.FindIndex(o => o.IsDone));
if (_currentStepIndex >= 0)
StartStep();
}

}
void StartStep()
{
Debug.Log("StartStep");
if (_currentQuest.Steps != null)
if (_currentQuest.Steps.Count > _currentStepIndex)
{

5
UOP1_Project/Assets/Scripts/SaveSystem/FileManager.cs


public static bool LoadFromFile(string fileName, out string result)
{
var fullPath = Path.Combine(Application.persistentDataPath, fileName);
if(!File.Exists(fullPath))
{
File.WriteAllText(fullPath, "");
}
try
{
result = File.ReadAllText(fullPath);

正在加载...
取消
保存