private void ExecuteSubtitles() { currentNode.Execute(); timer = new _Timer(0.1f, 0.1f, DialogManager.Instance); timer.OnUpdate += delegate { if (timer.ElapsedTimeF >= currentNode.dialogPartStartDuration) { currentNode.nodeCompleted = true; DialogManager.Instance.SubtitleArea.text = ""; if (currentNode.transitions.Count > 0) { DecideForNextNode(); } timer.Stop(); } }; timer.Execute(); }
private void Awake() { singleton = this; }