Bootstrap

挂在Text文本上,设置显示内容后,文字闪烁功能

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class FlashingText : MonoBehaviour
{
    [SerializeField] private Text textToUse;
    [SerializeField] private bool useThisText = false;
    [SerializeField] private bool useThisTextText = false;
    [SerializeField] private string flashingString;
    [SerializeField] private float textPause = 0.5f;
    private void Start()
    {
        if (useThisText)
        {
            textToUse = GetComponent<Text>();
        }
        if (useThisTextText)
        {
            flashingString = textToUse.text;
        }
        textToUse.text = "";
        StartCoroutine(TypeText(textToUse, flashingString, textPause));
    }
    private IEnumerator TypeText(Text text, string

;