refactor: Moved spawn logic to the presenter
This commit is contained in:
parent
859d34e3bb
commit
dd9640fc39
4 changed files with 9 additions and 67 deletions
|
@ -50,9 +50,7 @@ namespace View.UI {
|
|||
}
|
||||
|
||||
public void UpdateView(int score) {
|
||||
int frameDifference = score % _model.SpawnRate;
|
||||
animator.PlayUntil(frameDifference / (float)_model.SpawnRate);
|
||||
|
||||
animator.PlayUntil(_model.GrowPercentage);
|
||||
text.text = score.ToString();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue