using System.Collections.Generic; using Newtonsoft.Json; using UnityEngine; using UnityEngine.UIElements; using ZXing; /* * WalkDogsScoreController.cs * This script is responsible for managing the score in the Walk Dogs game. * It will handle score updates, display, and any related functionality. */ public class WalkDogsScoreController : MonoBehaviour { // Start is called once before the first execution of Update after the MonoBehaviour is created public int score, maxCombo, perfect, good, poor, miss; private int coin; private Label scoreLabel, maxComboLabel, perfectLabel, goodLabel, poorLabel, missLabel, coinLabel; private Label scoreValueLabel, maxComboValueLabel, perfectValueLabel, goodValueLabel, poorValueLabel, missValueLabel, coinValueLabel; private Button confirmButton; void Start() { var root = GetComponent().rootVisualElement; scoreLabel = root.Q