/// <summary> /// The Unity Update() method. /// </summary> public void Update() { if (!m_ShouldResolve) { return; } if (!m_CloudAnchorsExampleController.IsResolvingPrepareTimePassed()) { return; } if (!m_PassedResolvingTimeout) { m_TimeSinceStartResolving += Time.deltaTime; if (m_TimeSinceStartResolving > k_ResolvingTimeout) { m_PassedResolvingTimeout = true; m_CloudAnchorsExampleController.OnResolvingTimeoutPassed(); } } _ResolveAnchorFromId(m_CloudAnchorId); }
/// <summary> /// The Unity Update() method. /// </summary> public void Update() { if (!_shouldResolve) { return; } if (!_cloudAnchorsExampleController.IsResolvingPrepareTimePassed()) { return; } if (!_passedResolvingTimeout) { _timeSinceStartResolving += Time.deltaTime; if (_timeSinceStartResolving > _resolvingTimeout) { _passedResolvingTimeout = true; _cloudAnchorsExampleController.OnResolvingTimeoutPassed(); } } ResolveAnchorFromId(_cloudAnchorId); }