public void Awake() { _instance = this; trl = Application.dataPath + "/lyricJson.txt"; json = File.ReadAllText(trl); jobj = JObject.Parse(json); jarry = (JArray)jobj["LyricSheet"]; state = State.notalk; }
// Start is called before the first frame update void Start() { SceneManager.sceneLoaded += OnSceneLoaded; uiCheck(); diagSys = dialogueObject.GetComponent <dialogueSystem>(); dialogueSystem.onDialogEndEvent += onDialogEnd; dialogueSystem.onDialogStartEvent += onDialogStart; QuestInitialize(); }