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