using TMPro; using UnityEngine; public class ServerTaskbarScore : MonoBehaviour { public static ServerTaskbarScore Instance; public static int scoreVal = 60; public TMP_Text val; private void Awake() { Instance = this; } // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { } // Update is called once per frame void Update() { } public void UpdateScore() { val.text = scoreVal.ToString(); } }