Beispiel #1
0
    public void logic_tick()
    {
        if (currentPlayer != null)
        {
            currentPlayer.Tick();

            InGameGUI.show_text("framecount :" + currentPlayer.maxExe_FrameCount.ToString());
            InGameGUI.show_textID("clientID :" + currentPlayer.connectID.ToString());
        }
    }
Beispiel #2
0
    public void Tick()
    {
        Debug.Log("connectID size = " + ConnectionID.Count);
        InGameGUI.show_text("framecount = " + TotalFrames.Count.ToString());
        if (isGameStart && TotalFrames.Count < 45000)
        {
            //向每个player broadcast 第0帧

            //加入空帧 第1 帧


            if (TotalFrames.Count != 0 && TotalFrames.Count % sendingRate == 0)
            {
                BroadcastFrameUpdate(boardcastFrameNum, boardcastFrameNum + sendingRate);

                boardcastFrameNum += sendingRate;
            }

            AddEmptyFrames();
            RecordFastFrame();
            Debug.Log("framecount = " + TotalFrames.Count);
        }
    }