Пример #1
0
 private void Update()
 {
     if (isScreenVisible && (RectTransformExtensions.PressOutsideTransform(screenTransform) || RectTransformExtensions.PressOutsideTransform(screenTransform)))
     {
         //if the navigation has focus and there is a touch outside the navigation, close it
         ToggleNotificationScreen();
     }
 }
Пример #2
0
 private void Update()
 {
     if (hasFocus && (RectTransformExtensions.PressOutsideTransform(rectTransform) || RectTransformExtensions.PressOutsideTransform(rectTransform)))
     {
         //if the navigation has focus and there is a touch outside the navigation, close it
         ToggleDisplay();
     }
 }
 private void Update()
 {
     if (DigiDIntro.Finished)
     {
         digidIntroActive = false;
     }
     if (hasFocus && (RectTransformExtensions.PressOutsideTransform(rectTransform) || RectTransformExtensions.PressOutsideTransform(rectTransform)) && !digidIntroActive)
     {
         ToggleCellPhone();
     }
 }