34 lines
649 B
C#
34 lines
649 B
C#
|
|
using UnityEngine;
|
|
|
|
namespace TH1Resource
|
|
{
|
|
public class ResourceCache
|
|
{
|
|
|
|
public SpriteCache SpriteCache;
|
|
public AnimCache AnimCache;
|
|
public MatCache MatCache;
|
|
|
|
|
|
public static ResourceCache Instance { get; private set; }
|
|
|
|
|
|
public ResourceCache()
|
|
{
|
|
Instance = this;
|
|
SpriteCache = new SpriteCache();
|
|
AnimCache = new AnimCache();
|
|
MatCache = new MatCache();
|
|
}
|
|
|
|
public void Init()
|
|
{
|
|
SpriteCache.Init();
|
|
AnimCache.Init();
|
|
MatCache.Init();
|
|
}
|
|
}
|
|
|
|
}
|