Tanoda
ManipulatorHandle.cs
Go to the documentation of this file.
1using UnityEngine;
2
3public class ManipulatorHandle : MonoBehaviour
4{
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}
GameObject followObject
static ManipulatorArm instance
GameObject handAttachmentPoint
static ManipulatorHandle instance