/* * * * Game pathway steps * * * */ ///<summary>Initializes objects, the game space array, and counters, flags, and labels.</summary> private void setupGame() { //Debug.Log("setup game"); this.destroyObjects(); this.initializeObjects(); this.space = new int[SIZE, SIZE, SIZE]; this.space[2, 2, 2] = SPACE_SNAKE; this.space[3, 2, 2] = SPACE_SNAKE; this.space[4, 2, 2] = SPACE_SNAKE; this.score = 0; this.applesCollected = 0; this.goldAmount = DataAndSettingsManager.getGoldAmount(); this.isHardMode = DataAndSettingsManager.getHardModeState(); this.isPaused = false; this.generateApple(); this.updateScoreLabel(); this.updateGoldLabel(); DataAndSettingsManager.updateColorblindModeListeners(); }