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