feat: new rose spawn animation
This commit is contained in:
parent
b3996c6831
commit
1580910ec1
113 changed files with 6558 additions and 23 deletions
|
@ -14,10 +14,14 @@ namespace FramedAnimator {
|
|||
|
||||
private void Awake() {
|
||||
_renderer = GetComponent<SpriteRenderer>();
|
||||
_model = new AnimatorModel(animation.FrameRate, animation.FrameCount);
|
||||
if(animation)
|
||||
_model = new AnimatorModel(animation.FrameRate, animation.FrameCount);
|
||||
}
|
||||
|
||||
private void Update() {
|
||||
if (!animation)
|
||||
return;
|
||||
|
||||
if (_model.RenderingFrame >= _model.FrameCount - 1)
|
||||
TryCallAnimationEnd();
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue