using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class CachingTest : MonoBehaviour { Text thisTxt; Cache cacheActual; // Start is called before the first frame update void Start() { thisTxt = GetComponent(); cacheActual = Caching.currentCacheForWriting; } // Update is called once per frame void Update() { thisTxt.text = Caching.defaultCache.spaceOccupied.ToString(); } }