コード例 #1
0
ファイル: Game.cs プロジェクト: mengtest/actdemo
    void Update()
    {
        if (!mbNetInit || mClientNet == null)
        {
            return;
        }

        iTick++;
        if (iTick % 2 == 0)
        {
            mClientNet.Excutue();
        }

        if (Input.GetKeyDown(KeyCode.F))
        {
            GameCommand.SendCustom((CustomHeader)141, 0, 3, 1);
        }

//         if (ObjectManager.mRole != null && !WorldStage.mbReConnected)
//         {
//             SendGameHeartBeat();
//         }
    }