Example #1
0
        /// <summary>
        /// Attempt to grab our properties from the service so that we can bind them.
        /// </summary>
        private IEnumerator CheckForProperties()
        {
            mSearching = true;

            yield return(null);

            yield return(null);

            while (mCurrentValue == null || mFullValueProperty == null && !string.IsNullOrEmpty(mFullProperty))
            {
                mCurrentValue = mUIManagerRef.GetProperty <T>(mCurrentHash);
                if (!string.IsNullOrEmpty(mFullProperty))
                {
                    mFullValueProperty = mUIManagerRef.GetProperty <T>(mFullHash);
                }

                yield return(null);
            }

            AttachProperties();
        }
Example #2
0
        /// <summary>
        /// Attempt to grab our property from the service so that we can bind it.
        /// </summary>
        private IEnumerator CheckForProperty()
        {
            mSearching = true;

            yield return(new WaitForEndOfFrame());

            yield return(new WaitForEndOfFrame());

            while (mProperty == null)
            {
                mProperty = mUIManagerRef.GetProperty <T>(mPropertyHash);
                yield return(null);
            }

            AttachProperty();
        }