public MainViewModel() { var highScore = new HighScoreResultViewModel(); var highScoreLoader = new HighScoreLoader(_httpClient); QuestingViewModel = new QuestingViewModel(highScore.Skills); HighScoreModel = new HighScoreViewModel(QuestingViewModel, highScore, highScoreLoader); }
void Start() { basketMovement = GetComponent <BasketMovement>(); audioSource = GetComponent <AudioSource>(); highScoreLoader = FindObjectOfType <HighScoreLoader>(); highScore = highScoreLoader.GetHighScore(); highScoreText.text = "High Score : " + highScore.ToString(); UpdateScoreText(); }