Beispiel #1
0
 /// <summary>
 /// Initializes variables and makes sure they started correctly
 /// </summary>
 void OnEnable()
 {
     MLResult result = MLWorldPlanes.Start();
     if (!result.IsOk)
     {
         Debug.LogErrorFormat("Error: Planes failed starting MLWorldPlanes, disabling script. Reason: {0}", result);
         enabled = false;
         return;
     }
 }
        /// <summary>
        /// Initializes variables and makes sure they started correctly
        /// </summary>
        void OnEnable()
        {
            MLResult result = MLWorldPlanes.Start();

            if (!result.IsOk)
            {
                Debug.LogError("Error Planes starting MLWorldPlanes, disabling script.");
                enabled = false;
                return;
            }
        }
Beispiel #3
0
        /// <summary>
        /// Initializes variables and makes sure they started correctly
        /// </summary>
        void OnEnable()
        {
            MLResult result = MLWorldPlanes.Start();

            if (!result.IsOk)
            {
                GameObject.Find("DebugText").GetComponent <Text>().text = result.ToString();
                Debug.LogErrorFormat("Error: Planes failed starting MLWorldPlanes, disabling script. Reason: {0}", result);
                enabled = false;
                return;
            }
        }