protected void ConnectCallback(IAsyncResult ar)
 {
     ServerCon.socket.BeginReceive(ServerCon.readBuff, 0, ServerCon.BuffRemain, SocketFlags.None, ReceiveCallBack, ServerCon);
     inputCenter = new InputCenter();
     inputCenter.Init(this, maxUserCount);
     objectManager = new NetObjectManager(this);
     physics       = new ShapPhysics();
     physics.Init();
     random       = new IDG.Random(20190220);
     gameManagers = new List <IGameManager>();
     coroutine    = new CoroutineManager();
     gameManagers.AddRange(managers);
     gameManagers.Add(new TeamManager());
     gameManagers.Sort((a, b) => { if (a.InitLayer > b.InitLayer)
                                   {
                                       return(1);
                                   }
                                   else
                                   {
                                       return(-1);
                                   } });
 }
Esempio n. 2
0
 public InputUnit(InputCenter center)
 {
     inputCenter = center;
 }