Example #1
0
 private void ShowStimulationText(StimulType stimulationTextType)
 {
     stimulText.SetTextAndPlay(stimulationTextType);
     if (stimulationTextType == StimulType.Insane)
     {
         StartCoroutine(PlayUIVFX(fireworkVFX, 0.5f, 0.8f));
     }
 }
 public void SetTextAndPlay(StimulType textTypeToSet)
 {
     if (isInsanePlaying)
     {
         return;
     }
     text.text = textTypeToSet.ToString();
     UIanimator.CrossFadeInFixedTime(animations.stateDictionary[textTypeToSet], 0f, 0, 0f, 0f);
 }