public static void DoStorySet() { for (int i = 0; i < DataController.Instance.gameData.storyProgress.Length; i++) { findStoryID = i; if (DataController.Instance.gameData.storyProgress[i] == 1) { continue; } if (StoryChecker(i)) { break; } } if ((int)storyInfo[findStoryID]["AutoStory"] > 0) { DialogueController dia = GameObject.Find("DialogueController").GetComponent <DialogueController>(); Debug.Log("findStoryID is " + findStoryID); dia.DoStory(findStoryID); } else { SetStoryButton(findStoryID); } }