refactor: renamed Model.cs to Score.cs

This commit is contained in:
Gerard Gascón 2024-04-17 00:05:36 +02:00
parent 2be3b572fb
commit 5d470a57af
8 changed files with 48 additions and 48 deletions

View file

@ -11,12 +11,12 @@ namespace View.UI {
private ExpressionClick _click;
private CustomInput _customInput;
private Model _model;
private Score _score;
[SerializeField] private FramedAnimator.FramedAnimator animator;
private void Start() {
_model = FindObjectOfType<Dependencies>().Model;
_score = FindObjectOfType<Dependencies>().Score;
_click = FindObjectOfType<Dependencies>().ExpressionClick;
_customInput = FindObjectOfType<Dependencies>().CustomInput;
@ -27,7 +27,7 @@ namespace View.UI {
}
public void UpdateView(int score) {
animator.PlayUntil(_model.GrowPercentage);
animator.PlayUntil(_score.GrowPercentage);
text.text = score.ToString();
}