예제 #1
0
        protected override void OnAwake()
        {
            base.OnAwake();
            GameEntry.RegisterUpdateComponent(this);

            m_TimeManager = new TimeManager();
        }
예제 #2
0
        protected override void OnAwake()
        {
            base.OnAwake();
            GameEntry.RegisterUpdateComponent(this);
            m_UIGroupDic    = new Dictionary <byte, UIGroup>();
            m_StandarScreen = m_StandarWidth / (float)m_StandarHeigth;
            m_CurrScreen    = Screen.width / (float)Screen.height;

            NormalFormCanvasScaler();


            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_UIPool    = new UIPool();


            m_UILayer.Init(UIGroups);
        }
예제 #3
0
 protected override void OnAwake()
 {
     base.OnAwake();
     GameEntry.RegisterUpdateComponent(this);
     m_SocketManager = new SocketManager();
     SocketSendMS    = new MMO_MemoryStream();
     SocketReceiveMS = new MMO_MemoryStream();
 }
예제 #4
0
        protected override void OnAwake()
        {
            base.OnAwake();
            PoolManager = new PoolManager();
            GameEntry.RegisterUpdateComponent(this);
            m_NextRunTime = Time.time;

            InitGameObjectPool();
        }