Ejemplo n.º 1
0
 public static IEnumerator WaitForCompletionEnumerator(this TMP_TextJuicer textJuicer)
 {
     while (textJuicer != null && textJuicer.IsPlaying && textJuicer.Progress < 1.0f)
     {
         yield return(null);
     }
 }
Ejemplo n.º 2
0
        private void OnEnable()
        {
            textJuicer = (TMP_TextJuicer)target;

            textComponentSerializedProperty       = serializedObject.FindProperty("tmpText");
            durationSerializedProperty            = serializedObject.FindProperty("duration");
            delaySerializedProperty               = serializedObject.FindProperty("delay");
            progressSerializedProperty            = serializedObject.FindProperty("progress");
            playWhenReadySerializedProperty       = serializedObject.FindProperty("playWhenReady");
            loopSerializedProperty                = serializedObject.FindProperty("loop");
            playForeverSerializedProperty         = serializedObject.FindProperty("playForever");
            animationControlledSerializedProperty = serializedObject.FindProperty("animationControlled");
        }
 public TextJuicer_WaitForCompletion(TMP_TextJuicer targetTextJuicer)
 {
     textJuicer = targetTextJuicer;
 }