No me acuerdo
This commit is contained in:
parent
aabe5457e2
commit
9ecec372ce
143 changed files with 21409 additions and 2042 deletions
30
Assets/Scripts/UI/CanvasController.cs
Normal file
30
Assets/Scripts/UI/CanvasController.cs
Normal file
|
@ -0,0 +1,30 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using MyBox;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class CanvasController : MonoBehaviour {
|
||||
|
||||
[SerializeField] Sprite[] orbCountdown;
|
||||
[SerializeField] Image orb;
|
||||
|
||||
// Start is called before the first frame update
|
||||
[ButtonMethod]
|
||||
void Start() {
|
||||
StartCoroutine(Countdown());
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update(){
|
||||
|
||||
}
|
||||
|
||||
IEnumerator Countdown() {
|
||||
for (int i = 0; i < 10; ++i) {
|
||||
orb.sprite = orbCountdown[i];
|
||||
yield return new WaitForSeconds(1f);
|
||||
}
|
||||
GameManager.instance.SelectRandomEffect();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue