Added Fechting Scores Animation
This commit is contained in:
parent
cc31ce9b38
commit
68d2750ff1
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
11
Unity-Files/Assets/Animations/Game Over Screen/FetchingScoresAnimation.cs.meta
generated
Normal file
11
Unity-Files/Assets/Animations/Game Over Screen/FetchingScoresAnimation.cs.meta
generated
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5b53f28e9e952b644890fd1bc631a6d6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
x
Reference in New Issue
Block a user