1
0
forked from cgvr/DeltaVR

on shape scanner completion, door is unlocked, shape scanner initializes empty config, quest marker moves to npc

This commit is contained in:
2026-03-01 13:15:51 +02:00
parent 95e67b9870
commit 5e6bb24c27
9 changed files with 101 additions and 30 deletions

View File

@@ -8,10 +8,10 @@ public class ShapeDetectionNPC : NPCController
public QuestMarker questMarker;
public RadioTransmitter radio;
public Transform computerKeyboardKey;
public ComputerPrinter computerPrinter;
public Printer3DInputHole printerInsertionHole;
public Texture2D GeneratedTexture { get; private set; }
public ComputerPrinter computerPrinter;
public ShapeScanner shapeScanner;
public Transform questMarkerPoint;
public float radioAmount = 1f;
@@ -35,8 +35,9 @@ public class ShapeDetectionNPC : NPCController
{
radio.OnPlayerPickUp += OnPlayerPickedUpRadio;
radio.OnPlayerFinishedSpeaking += OnPlayerSpokeIntoRadio;
computerPrinter.OnImagePrinted += OnPlayerPrintedImage;
printerInsertionHole.OnPlayerInsertedPrintable += OnPlayerInitiatedPrinting;
computerPrinter.OnImagePrinted += OnPlayerPrintedImage;
shapeScanner.OnShapeScannerCompleted += OnShapeScannerCompleted;
}
protected async override void OnPlayerApproach()
@@ -123,4 +124,9 @@ public class ShapeDetectionNPC : NPCController
questMarker.MoveTo(shapeScanner.transform, true);
}
}
private void OnShapeScannerCompleted()
{
questMarker.MoveTo(questMarkerPoint);
}
}