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();
        }
Example #2
0
 private void Awake()
 {
     singleton = this;
 }