示例#1
0
        public MainViewModel()
        {
            var highScore       = new HighScoreResultViewModel();
            var highScoreLoader = new HighScoreLoader(_httpClient);

            QuestingViewModel = new QuestingViewModel(highScore.Skills);
            HighScoreModel    = new HighScoreViewModel(QuestingViewModel, highScore, highScoreLoader);
        }
示例#2
0
    void Start()
    {
        basketMovement = GetComponent <BasketMovement>();
        audioSource    = GetComponent <AudioSource>();

        highScoreLoader    = FindObjectOfType <HighScoreLoader>();
        highScore          = highScoreLoader.GetHighScore();
        highScoreText.text = "High Score : " + highScore.ToString();
        UpdateScoreText();
    }