ZoeAppClass/Assets/Scripts/Teste/CachingTest.cs

23 lines
507 B
C#

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<Text>();
cacheActual = Caching.currentCacheForWriting;
}
// Update is called once per frame
void Update()
{
thisTxt.text = Caching.defaultCache.spaceOccupied.ToString();
}
}