void Start() { selector.transform.SetParent(menuOptions[0].selectPoint.transform); selector.localPosition = Vector3.zero; selectorIndex = 0; displayedPanel = DisplayedPanel.mainMenu; mainMenuPanel.SetActive(true); creditsPanel.SetActive(false); SerializeSystem.LoadGame(scoreData); scoreData.currentScore = 0; UpdateHighscoreDisplay(); }
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(); }