예제 #1
0
        // Use this for initialization
        private IEnumerator Start()
        {
            var loader = ResLoader.Allocate();

            ResMgr.Init();

            var spriteAtlas = loader.LoadSync <SpriteAtlas>("spriteatlas");
            var square      = spriteAtlas.GetSprite("Square");

            Log.I(spriteAtlas.spriteCount);

            mImage.sprite = square;

            yield return(new WaitForSeconds(5.0f));

            loader.Recycle2Cache();
            loader = null;
        }
예제 #2
0
 private void Awake()
 {
     ResMgr.Init();
 }
예제 #3
0
 public static void Init()
 {
     ResMgr.Init();
 }
예제 #4
0
 private void Awake()
 {
     ResMgr.Init();
     Log.Level = LogLevel.Max;
     PCConnectMobileManager.Instance.SendEvent(PCConnectMobileEvent.MobileServerCreated);
 }