Пример #1
0
 void OnEnable()
 {
     DebugUtilities.UserMessage("Hollo World . . .");
                 #if UNITY_ANDROID
     Thread.Sleep(1500);
                 #endif
     DebugUtilities.UserMessage("Your IP is:\n" + NetworkUtilities.LocalIPAddress());
                 #if UNITY_ANDROID
     Thread.Sleep(3500);
                 #endif
     DebugUtilities.UserMessage("Place your CPlane by tapping on scanned mesh.");
 }
 // If clicked on mesh - try to snap if the object is currently placing.
 // NB! check the distance if the object is hovering (not on mesh) - ignore click.
 public bool OnTrySnap()
 {
     if ((this.flagPlacing) && (InteractionManager.instance.flagHitGaze))
     {
         float distance = Distance2Camera(InteractionManager.instance.hitGaze.point);
         if (distance < this.maxSnapDistance)
         {
             this.flagPlacing = false;
             UpdateAppearance();
             return(true);
         }
     }
     else
     {
         DebugUtilities.UserMessage("Try to look at scanned mesh or come closer to it.");
     }
     return(false);
 }
Пример #3
0
 ////////////////////////////////////////////////////////////////////////
 // If c plane is not found - hint user and return false.
 public bool CheckCPlane()
 {
     if (this.cPlane == null)
     {
         this.cPlane = GameObject.FindGameObjectWithTag(this.tagCPlane);
         if (this.cPlane == null)
         {
             DebugUtilities.UserMessage("Place your CPlane by tapping on scanned mesh.");
             return(false);
         }
                         #if DEBUG
         DebugUtilities.UniversalDebug(this.sourceName, "CPlane: " + this.cPlane);
                         #endif
     }
     // #if UNITY_ANDROID
     // HoloFabARController.cPlaneInstance = this.cPlane;
     // #endif
     return(true);
 }
Пример #4
0
 private static void UniversalDebug(string message, MessageType messageType = MessageType.Normal)
 {
     DebugUtilities.UserMessage(message, messageType);
 }