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;
|
||||
|
||||
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();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user