public void Stop()
 {
     if (IsPlaying())
     {
         isStopped = true;
         if (timer != null && timer.IsRunning())
         {
             timer.Stop();
         }
     }
 }
        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();
        }