feat: new rose spawn animation
This commit is contained in:
parent
b3996c6831
commit
1580910ec1
113 changed files with 6558 additions and 23 deletions
|
@ -16,10 +16,12 @@ namespace View.Scene {
|
|||
[SerializeField] private EventReference gloomEvent;
|
||||
|
||||
private Score _score;
|
||||
private SpawnRose _spawnRose;
|
||||
private bool _firstUpdate = true;
|
||||
|
||||
private void Start() {
|
||||
_score = FindObjectOfType<Dependencies>().Score;
|
||||
_spawnRose = FindObjectOfType<Dependencies>().Spawner;
|
||||
|
||||
animator.OnAnimationEnd += AnimationEnded;
|
||||
}
|
||||
|
@ -33,6 +35,7 @@ namespace View.Scene {
|
|||
}
|
||||
|
||||
if (animationName == "Rosa_End") {
|
||||
_spawnRose.Execute();
|
||||
animator.ChangeAnimation(growAnimation);
|
||||
animator.PlayUntil(_score.GrowPercentage);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue