public void SetTextEffects(string emotion, float intensity, Dictionary <AbstractTextEffect.TextEffectEnum, AnimationCurve> showEffects, Dictionary <AbstractTextEffect.TextEffectEnum, AnimationCurve> hideEffects)
        {
            Dictionary <float, TextData> dict = defaultTextData[emotion];
            TextData textData = dict.Where(key => intensity <= key.Key).OrderBy(key => key.Key).FirstOrDefault().Value;

            if (showEffects != null)
            {
                textData.showEffect = showEffects;
            }
            if (hideEffects != null)
            {
                textData.hideEffect = hideEffects;
            }

            BubbleSystemUtility.AddToDictionary(ref defaultTextData, emotion, intensity, textData);
        }
 public void AddCurve(string name, AnimationCurve curve)
 {
     BubbleSystemUtility.AddToDictionary(ref curves, name, curve);
 }