Added Fechting Scores Animation

This commit is contained in:
Philip W 2021-11-14 12:00:11 +00:00
parent cc31ce9b38
commit 68d2750ff1
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,30 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Threading.Tasks;
using UnityEngine.UI;
public class FetchingScoresAnimation : MonoBehaviour
{
void Update()
{
AnimateText();
}
private async void AnimateText()
{
Text text = GetComponent<Text>();
while (true)
{
await Task.Run(async () => {
text.text = "Fetching Scores.";
await Task.Delay(1000);
text.text = "Fetching Scores..";
await Task.Delay(1000);
text.text = "Fetching Scores...";
await Task.Delay(1000);
});
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5b53f28e9e952b644890fd1bc631a6d6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: