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:
parent
e64deabf8a
commit
d45841455b
8 changed files with 487 additions and 72 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue