Skip to content

Commit 4410c13

Browse files
committed
Add Restart function to AnimatedSprite
1 parent 539c687 commit 4410c13

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Runtime/AnimatedSprite.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ private void Awake()
5454
}
5555

5656
private void Start()
57+
{
58+
Restart();
59+
}
60+
61+
public void Restart()
5762
{
5863
this.frame = 0;
5964
SetSprite();

0 commit comments

Comments
 (0)