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 OnEnable() { var root = GetComponent().rootVisualElement; root.style.backgroundColor = new Color(255, 255, 255, 0.25f); // Set background color to white with 50% opacity scoreLabel = root.Q