protected override void OnAwake() { base.OnAwake(); GameEntry.RegisterUpdateComponent(this); m_TimeManager = new TimeManager(); }
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); }
protected override void OnAwake() { base.OnAwake(); GameEntry.RegisterUpdateComponent(this); m_SocketManager = new SocketManager(); SocketSendMS = new MMO_MemoryStream(); SocketReceiveMS = new MMO_MemoryStream(); }
protected override void OnAwake() { base.OnAwake(); PoolManager = new PoolManager(); GameEntry.RegisterUpdateComponent(this); m_NextRunTime = Time.time; InitGameObjectPool(); }