forked from cgvr/DeltaVR
29 lines
609 B
C#
29 lines
609 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.XR.Interaction.Toolkit;
|
|
|
|
public class RadioTransmitter : XRGrabInteractable
|
|
{
|
|
public delegate void OnPlayerPickUpDelegate();
|
|
public event OnPlayerPickUpDelegate OnPlayerPickUp;
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
protected override void OnSelectEntered(SelectEnterEventArgs args)
|
|
{
|
|
base.OnSelectEntered(args);
|
|
OnPlayerPickUp?.Invoke();
|
|
}
|
|
}
|