Пример #1
0
 private void CheckUpdateHighScore()
 {
     if (points > scoreData.highScore)
     {
         canvasManager.UpdateHighScore(points);
         scoreData.highScore = (int)points;
     }
 }
Пример #2
0
 void Start()
 {
     Application.targetFrameRate = 60;
     map           = Map.instance;
     canvasManager = UI_CanvasManager.instance;
     SerializeSystem.LoadGame(scoreData);
     points = (uint)scoreData.currentScore;
     canvasManager.UpdateScore(points);
     canvasManager.UpdateHighScore((uint)scoreData.highScore);
     player     = FindObjectOfType <PaxMan>();
     blinky     = FindObjectOfType <Blinky>();
     ghosts     = FindObjectsOfType <Ghost>();
     gameOver   = false;
     initedGame = false;
     InitGame();
 }