private void OnTriggerEnter(Collider other) { NVRHead playerHead = other.GetComponent <NVRHead>(); if (playerHead) { playerHealth.DecreaseHealth(penaltyAmount); } }
private void Awake() { Instance = this; NVRInteractables.Initialize(); if (Head == null) { Head = GetComponentInChildren<NVRHead>(); } if (LeftHand == null || RightHand == null) { Debug.LogError("[FATAL ERROR] Please set the left and right hand to a nvrhands."); } if (Hands == null || Hands.Length == 0) { Hands = new[] { LeftHand, RightHand }; } _colliderToHandMapping = new Dictionary<Collider, NVRHand>(); }
public override string GetDeviceName(NVRHead head) { return("RoboHead"); }
public override string GetDeviceName(NVRHead head) { return("ROS Simple Robot Head"); }
public override string GetDeviceName(NVRHead head) { return("HTC Vive HMD"); }
public abstract string GetDeviceName(NVRHead head);