ToggleBoundingBox.cs 816 Bytes
Newer Older
BlackAngle233's avatar
BlackAngle233 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using Microsoft.MixedReality.Toolkit.UI;
using UnityEngine;

namespace Microsoft.MixedReality.Toolkit.Examples.Demos
{
    [System.Obsolete("This component is no longer supported", true)]
    [AddComponentMenu("Scripts/MRTK/Obsolete/ToggleBoundingBox")]
    public class ToggleBoundingBox : MonoBehaviour
    {
        public BoundingBox boundingBox;

        private void Awake()
        {
            Debug.LogError(this.GetType().Name + " is deprecated");
        }

        public void ToggleBoundingBoxActiveState()
        {
            // Do something on specified distance for fire event
            if (boundingBox != null)
            {
                boundingBox.Active = !boundingBox.Active;
            }

        }
    }
}