PuzzleMeasurement, add Realm, door ExitedFrom event
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using EscapeRoomEngine.Engine.Runtime.Measurements;
|
||||
using EscapeRoomEngine.Engine.Runtime.Utilities;
|
||||
using NaughtyAttributes;
|
||||
using UnityEngine;
|
||||
@@ -53,6 +54,14 @@ namespace EscapeRoomEngine.Engine.Runtime.Modules
|
||||
protected virtual void Start()
|
||||
{
|
||||
OnPuzzleEvent(PuzzleEventType.Restarted);
|
||||
|
||||
PuzzleEvent += (_, type) =>
|
||||
{
|
||||
if (type == PuzzleEventType.Solved)
|
||||
{
|
||||
Measure.Solve((PuzzleModuleDescription)Module.description);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private void OnPuzzleEvent(PuzzleEventType type)
|
||||
|
||||
Reference in New Issue
Block a user