Ejemplo n.º 1
0
        public static void StartLoad()
        {
            LoadNum = MgrTypeArr.Length;

            MessageAggregator <object> .Instance.Subscribe(MessageType.TableMgrLoadFinish, DownloadFinish);

            foreach (var m in MgrTypeArr)
            {
                TableMgrContainer.RegisterSingleton(m);
            }
        }
Ejemplo n.º 2
0
        public override void DoOpen()
        {
            base.DoOpen();

            Debug.Log("123123");

            var data = TableMgrContainer.Resolve <TestModelMgr>().GetTableById(0);

            //Debug.Log(data.Test1);

            image.sprite = ServiceLocator.Resolve <ResourceService>().LoadSpriteFromAtlasSync("RedPoint1");

            image.SetNativeSize();
        }