CVR_TriggerObjBase.cs 632 B

12345678910111213141516171819202122232425
  1. using ChivaXR.VR;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. namespace ChivaXR.VR
  6. {
  7. [RequireComponent(typeof(IVR_Interactable))]
  8. public class CVR_TriggerObjBase : MonoBehaviour
  9. {
  10. private IVR_Interactable interactable;
  11. private void Awake()
  12. {
  13. interactable = this.GetComponent<IVR_Interactable>();
  14. interactable.CVR_InteractableObjectUsed += Interactable_CVR_InteractableObjectUsed;
  15. }
  16. private void Interactable_CVR_InteractableObjectUsed(object sender, CVR_InteractableObjectEventArgs e)
  17. {
  18. }
  19. }
  20. }