1
0
forked from cgvr/DeltaVR

added Radio model, npc correctly speaks when interacting with elements

This commit is contained in:
2026-02-15 13:57:13 +02:00
parent 85df2ce45d
commit 8e606782ab
6 changed files with 50 additions and 31 deletions

View File

@@ -4,6 +4,9 @@ using UnityEngine;
public class ComputerPrinter : MonoBehaviour
{
public delegate void OnImagePrintedDelegate();
public event OnImagePrintedDelegate OnImagePrinted;
public TextMeshProUGUI textDisplay;
public PushableButton enterKey;
public Transform ejectionOrigin;
@@ -37,6 +40,7 @@ public class ComputerPrinter : MonoBehaviour
Rigidbody printableRigidbody = printable.GetComponent<Rigidbody>();
printableRigidbody.isKinematic = false;
enterKey.Deactivate();
OnImagePrinted?.Invoke();
});
}
}