forked from cgvr/DeltaVR
added Radio model, npc correctly speaks when interacting with elements
This commit is contained in:
@@ -4,6 +4,9 @@ using UnityEngine.XR.Interaction.Toolkit;
|
||||
|
||||
public class Printer3DInputHole : MonoBehaviour
|
||||
{
|
||||
public delegate void OnPlayerInsertedPrintableDelegate();
|
||||
public event OnPlayerInsertedPrintableDelegate OnPlayerInsertedPrintable;
|
||||
|
||||
public Printer3D printer;
|
||||
public XRInteractionManager interactionManager;
|
||||
public Transform insertionOrigin;
|
||||
@@ -37,6 +40,7 @@ public class Printer3DInputHole : MonoBehaviour
|
||||
{
|
||||
ReleaseFromPlayer(printable);
|
||||
InsertPrintable(printable);
|
||||
OnPlayerInsertedPrintable?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user