コード例 #1
0
 private void FixedUpdate()
 {
     countTime += Time.deltaTime;
     if (countTime >= pongTime)
     {
         countTime = 0.0f;
         PacketOutStream packet = ClientCreatePacket.pong();
         ClientHelper.Instance.Send(packet);
     }
 }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     ClientHelper.Instance.Send(ClientCreatePacket.request_sence());
 }