public static IEnumerator WaitForCompletionEnumerator(this TMP_TextJuicer textJuicer) { while (textJuicer != null && textJuicer.IsPlaying && textJuicer.Progress < 1.0f) { yield return(null); } }
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; }