public void RequestDialogue(DialogueInfo info)
        {
            _animating = true;

            TimerManager.AddTask(InitiateFadeOut, info.duration, out fadeOutString);

            Bubble.SetActive(true);
            Color _color = spriteRenderer.color;

            _color.a             = 0;
            spriteRenderer.color = _color;
            TimerManager.AddLoopedTask(FadeIn, BubbleFadeSpeed, out fadeoutLoopedString);
        }
Example #2
0
 public void TextFadeIn()
 {
     if (dialogueInfos.Count < 1)
     {
         return;
     }
     Animating              = true;
     characterName.text     = currentDialogue.character.characterName + ": ";
     characterDialogue.text = currentDialogue.dialogue;
     TimerManager.AddLoopedTask(FadeInAnimation, FadeInTime);
     TimerManager.AddLoopedTask(UpdateGradientTimer, currentDialogue.duration, out gradientID);
     TimerManager.AddTask(FadeOutWithDelay, currentDialogue.duration, out fadeOutID);
     TimerManager.AddTask(FinishAnimation, currentDialogue.duration + FadeInTime, out endAnimID);
 }
Example #3
0
 public void FadeOutWithDelay()
 {
     TimerManager.AddLoopedTask(FadeOutAnimation, FadeInTime);
 }
 public void InitiateFadeOut()
 {
     TimerManager.AddLoopedTask(FadeOut, BubbleFadeSpeed);
     TimerManager.AddTask(FadeOutDelayed, BubbleFadeSpeed);
 }