Tanoda
ManipulatorHandle.cs
Go to the documentation of this file.
1
using
UnityEngine
;
2
3
public
class
ManipulatorHandle
: MonoBehaviour
4
{
5
public
static
ManipulatorHandle
instance
;
6
public
GameObject
handAttachmentPoint
;
7
private
void
Awake()
8
{
9
if
(!
instance
)
10
instance
=
this
;
11
else
12
Destroy(
this
);
13
}
14
#if DANA
15
private
void
OnTriggerEnter(Collider other)
16
{
17
if
(other.GetComponentInParent<
HackedHand
>())
18
{
19
var hh = other.GetComponentInParent<
HackedHand
>();
20
ManipulatorArm
.
instance
.
followObject
= hh.objectAttachmentPoint.gameObject;
21
}
22
}
23
#endif
24
}
HackedHand
Definition:
HackedHand.cs:22
ManipulatorArm
Definition:
ManipulatorArm.cs:8
ManipulatorArm.followObject
GameObject followObject
Definition:
ManipulatorArm.cs:12
ManipulatorArm.instance
static ManipulatorArm instance
Definition:
ManipulatorArm.cs:9
ManipulatorHandle
Definition:
ManipulatorHandle.cs:4
ManipulatorHandle.handAttachmentPoint
GameObject handAttachmentPoint
Definition:
ManipulatorHandle.cs:6
ManipulatorHandle.instance
static ManipulatorHandle instance
Definition:
ManipulatorHandle.cs:5
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
Scripts
TestScripts
ManipulatorHandle.cs
Generated by
1.9.3