AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
UsableObject.cs
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License. See LICENSE in the project root for license information.
3 
4 using UnityEngine;
5 namespace HoloToolkit.Unity.InputModule.Examples.Grabbables
6 {
12 
13  public class UsableObject : BaseUsable
14  {
15  protected override void OnEnable()
16  {
17  base.OnEnable();
18 
19  Debug.Log("Do something here with the usable object...");
20  Debug.LogWarning("Do something here with the usable object...");
21  }
22 
23  protected override void OnDisable()
24  {
25  Debug.Log("Do something here with the usable object...");
26  Debug.LogWarning("Do something here with the usable object...");
27 
28  base.OnDisable();
29  }
30 
31 
32  protected override void UseStart()
33  {
34  Debug.Log("Do something here with the usable object...");
35  Debug.LogWarning("Do something here with the usable object...");
36  }
37 
38  protected override void UseEnd()
39  {
40  Debug.Log("End of Use on UsableObject...");
41  Debug.LogWarning("End of use on usable object...");
42  }
43  }
44 }
Extends from BaseUsable. This is a non-abstract script that's actually attached to usable object Defi...
Definition: UsableObject.cs:13
A usable object is one that can be "used" or activated while being grabbed/carried A gun and a remote...
Definition: BaseUsable.cs:16