Exemple #1
0
        protected override void Awake()
        {
            base.Awake();

            fontAssets = FontAssetCache.LoadAssetCache <FontAssetCache>();
        }
 private void Start()
 {
     fontAssets = FontAssetCache.LoadAssetCache <FontAssetCache>();
     StateSynchronizationSceneManager.Instance.RegisterService(this, new ComponentBroadcasterDefinition <TextBroadcaster>(typeof(Text)));
 }
 public void ClearAssetCache()
 {
     FontAssetCache.GetOrCreateAssetCache <FontAssetCache>().ClearAssetCache();
 }
 public void SaveAssets()
 {
     FontAssetCache.GetOrCreateAssetCache <FontAssetCache>().SaveAssets();
 }
 public void UpdateAssetCache()
 {
     FontAssetCache.GetOrCreateAssetCache <FontAssetCache>().UpdateAssetCache();
 }