System.Collections.IEnumerator ChangeSelection ()
{
//#if !UNITY_WINRT && !UNITY_WP8 && !UNITY_WP_8_1
yield return new WaitForEndOfFrame
(); //#endif
if (onSelect != null) onSelect(mCurrentSelection, false);
Notify(mCurrentSelection, "OnSelect", false);
mCurrentSelection = mNextSelection;
mNextSelection = null;
if (mCurrentSelection != null)
{
current = this;
currentCamera = mCam;
UICamera.currentScheme = mNextScheme;
inputHasFocus = (mCurrentSelection.GetComponent<UIInput>() != null);
if (onSelect != null) onSelect(mCurrentSelection, true);
Notify(mCurrentSelection, "OnSelect", true);
current = null;
}
else inputHasFocus = false;
}