PuzzleMeasurement, add Realm, door ExitedFrom event
This commit is contained in:
@@ -52,6 +52,10 @@ namespace EscapeRoomEngine.Portal.Runtime
|
||||
StopTrackingDriver(portalDriver);
|
||||
linkedPortal.StartTrackingDriver(portalDriver, -1);
|
||||
portalDriver.Teleport(this, linkedPortal);
|
||||
if (portalDriver.player)
|
||||
{
|
||||
linkedPortal.OnDoorEvent(DoorEventType.ExitedFrom);
|
||||
}
|
||||
i--; // decrease the loop counter because the list is one element smaller now
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user