Example #1
0
        protected override void OnAwake()
        {
            base.OnAwake();
            Debug.Log("初始化自适应");
            m_UIGroupDic = new Dictionary <byte, UIGroup>();
            GameEntry.RegisterUpdateComponent(this);

            m_StandardScreen = m_StandardWidth / (float)m_StandardHeight;
            m_CurrScreen     = Screen.width / (float)Screen.height;

            //NormalFormCanvasScaler();
            LoadingFormCanvasScaler();
            int len = UIGroups.Length;

            for (int i = 0; i < len; i++)
            {
                UIGroup group = UIGroups[i];
                m_UIGroupDic[group.Id] = group;
            }
            m_UIManager = new UIManager();
            m_UILayer   = new UILayer();
            m_UILayer.Init(UIGroups);

            m_UIPool = new UIPool();
        }
Example #2
0
 protected override void OnAwake()
 {
     base.OnAwake();
     //注册更新组件
     GameEntry.RegisterUpdateComponent(this);
     m_TimeManager = new TimeManager();
 }
Example #3
0
 protected override void OnAwake()
 {
     base.OnAwake();
     GameEntry.RegisterUpdateComponent(this);
     m_SocketManager = new SocketManager();
     SocketSendMS = new MMO_MemoryStream();
     SocketReceiveMS = new MMO_MemoryStream();
     //MMO_MemoryStream = new MMO_MemoryStream();
 }
Example #4
0
        protected override void OnAwake()
        {
            base.OnAwake();
            PoolManager = new PoolManager();
            GameEntry.RegisterUpdateComponent(this);

            m_ReleaseClassObjectNextRunTime = Time.time;
            m_ReleaseAssetBundleNextRunTime = Time.time;
            m_ReleaseAssetNextRunTime       = Time.time;

            InitGameObjectPool();

            FontDic = new Dictionary <string, ResourceEntity>();
        }
Example #5
0
        protected override void OnAwake()
        {
            base.OnAwake();
            GameEntry.RegisterUpdateComponent(this);

            ResourceManager       = new ResourceManager();
            ResourceLoaderManager = new ResourceLoaderManager();

#if DISABLE_ASSETBUNDLE
            LocalFilePath = Application.dataPath;
#else
            LocalFilePath = Application.persistentDataPath;
#endif
        }
 protected override void OnAwake()
 {
     base.OnAwake();
     GameEntry.RegisterUpdateComponent(this);
     m_ProcedureManager = new ProcedureManager();
 }
Example #7
0
 protected override void OnAwake()
 {
     base.OnAwake();
     GameEntry.RegisterUpdateComponent(this);
     m_DownloadManager = new DownloadManager();
 }