// Update is called once per frame void Update() { if (!Main.IsFinishStartAll()) { return; } if (RosSocketClient.GetConnectionState() == ConnectionState.Disconnected) //切断時 { time_access += Time.deltaTime; if (time_access > 10.0f) { time_access = 0.0f; RosSocketClient.Connect(); } } if (RosSocketClient.GetConnectionState() == ConnectionState.Connected) { if (wait_anything) { if (!success_access || !abort_access) { WaitResponce(5.0f); } } } }