// 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; }
private void Awake() { ResMgr.Init(); }
public static void Init() { ResMgr.Init(); }
private void Awake() { ResMgr.Init(); Log.Level = LogLevel.Max; PCConnectMobileManager.Instance.SendEvent(PCConnectMobileEvent.MobileServerCreated); }