IEnumerator RefreshSeatStatus() { SendInfoToVR.PingAllDevices(); yield return(new WaitForSeconds(refreshInterval)); TouchableSeat[] seats = FindObjectsOfType <TouchableSeat> (); DeviceInfo[] devices = TotemManager.devices; for (int i = 0; i < devices.Length; i++) { for (int j = 0; j < seats.Length; j++) { if (devices [i].deviceID == seats [j].seatName) { if (!(devices [i].deviceStatus == DeviceStatus.idle)) { seats [j].seatStatus = TouchableSeat.SeatStatus.Occupied; break; } } } } seats [0].ChangeAllImages(); StartCoroutine(RefreshSeatStatus()); }
public void ConfirmSeatSelection() { // send message to VR application to start session SendInfoToVR.FindDevice(selectedSeat, ApplicationControl.currentSelectingUser.id.ToString()); // wait for device to send back a signal // display panel StartConfirmation(); }
private void SendWarningEmbarque(string deviceID) { SendInfoToVR.SendWarning(deviceID); }