using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Threading.Tasks; using UnityEngine.UI; public class FetchingScoresAnimation : MonoBehaviour { private Text textComponent; void Start() { textComponent = GetComponent(); AnimateText(); } private async void AnimateText() { while (true) { textComponent.text = "Fetching Scores"; await Task.Delay(1000); textComponent.text = "Fetching Scores."; await Task.Delay(1000); textComponent.text = "Fetching Scores.."; await Task.Delay(1000); textComponent.text = "Fetching Scores..."; await Task.Delay(1000); } } }