private void Update() { net.Update(); //if (state == 0) { return; } //if (state == -100) { Index = 0; state = -101; } //if (state == -101) { Index++; if (Index == 5) { server.Close(); state = -200; timer1.Stop(); } } //Index++; //time = deltaTime * Index; ////==处理输入 //this.ProcessInputs(); ////==逻辑更新 //this.EntityUpdate(); ////== 物理更新 //world.Step(deltaTime); ////==玩法更新 //if (!rule.Update(this)) //{//结算了 // state = -100; //} ////==发送数据给客户端 //this.SendMsg(); //msg_intput.Clear(); }
// Update is called once per frame void Update() { netManager.Update(); }