1
0
forked from cgvr/DeltaVR

created ShapeDetectionNPC with voicelines, moved shape detection minigame controller logic inside it

This commit is contained in:
2026-02-12 12:22:23 +02:00
parent dc55e8d884
commit d0b909a1ab
9 changed files with 709 additions and 25 deletions

View File

@@ -0,0 +1,28 @@
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();
}
}