32 lines
769 B
C#
32 lines
769 B
C#
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<Text>();
|
|
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);
|
|
}
|
|
}
|
|
}
|