Exemplo n.º 1
0
 protected virtual void Awake()
 {
     m_Instance         = this;
     m_MapManager       = new CMapManager();
     m_RegisterEntities = new Dictionary <string, CEntity> ();
     m_EntityConnecteds = new Dictionary <NetworkConnection, CEntity> ();
 }
        public override void OnStartServer()
        {
            base.OnStartServer();
            this.m_NetworkManager = CNetworkManager.GetInstance();

            this.m_ObjectManager              = CObjectManager.GetInstance();
            this.m_ObjectManager.OnGetObject += OnServerSyncObject;
            this.m_ObjectManager.OnSetObject += OnServerReturnObject;
        }
Exemplo n.º 3
0
 // Start GameObject
 protected virtual void Start()
 {
     m_NetworkManager         = CNetworkManager.GetInstance();
     m_CountDownFixedTimeSync = new CountdownTime(m_FixedTimeSync, true);
     OnCreateControlObject();
 }