If a placement won't create a combo, you can now play instantly

Improved character animations to play during loss/win, and to reset during a rematch
Drop tiles won't be rendered if 0
This commit is contained in:
LadyEbony 2020-08-22 16:43:30 -07:00
parent e64deabf8a
commit d45841455b
8 changed files with 487 additions and 72 deletions

View file

@ -12,7 +12,7 @@ public class SimpleAnimationLoop : MonoBehaviour {
renderer = GetComponent<SpriteRenderer>();
}
private void Update() {
public void Update() {
var frameindex = Mathf.FloorToInt(Time.time / frameTime);
renderer.sprite = sprites[frameindex % sprites.Length];
}