// generic method to send command object to server private void SendCommandToServer(VRCommand cmdObj) { SendToServerJob ssj = new SendToServerJob(); ssj.connectionInfo = targetServerConnectionInfo; ssj.command = cmdObj; ssj.Start(); }
private void SendPingToServer() { SendToServerJob sendToServerJob = new SendToServerJob(); sendToServerJob.connectionInfo = targetServerConnectionInfo; sendToServerJob.isPingOnly = true; sendToServerJob.Start(); }
private void SendPingToServer() { sendToServerJob = new SendToServerJob(); sendToServerJob.connectionInfo = targetServerConnectionInfo; sendToServerJob.isPingOnly = true; sendToServerJob.Start(); //Debug.Log("Ping Send!"); //StartCoroutine(CheckSendToServerState()); }
private void SendPingToServer() { Text nettext = (Text)GameObject.Find("txtNetworkStatus").GetComponent(typeof(Text)); sendToServerJob = new SendToServerJob(); sendToServerJob.connectionInfo = targetServerConnectionInfo; sendToServerJob.isPingOnly = true; sendToServerJob.textComponent = nettext; sendToServerJob.Start(); StartCoroutine(CheckSendToServerState()); }
protected override void OnFinished() { SendToServerJob sendToServerJob = new SendToServerJob(); if (OutputRunningGameInfo != null) { VRCommand cmd = new VRCommand(Enums.ControlMessage.UNITY_DASHBOARD_GETRUNNINGGAMES, OutputRunningGameInfo); sendToServerJob.connectionInfo = connectionInfo; sendToServerJob.command = cmd; sendToServerJob.Start(); } }