No me acuerdo

This commit is contained in:
Gerard Gascón 2023-02-28 18:02:31 +01:00
parent aabe5457e2
commit 9ecec372ce
143 changed files with 21409 additions and 2042 deletions

View 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();
}
}