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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,10 @@ namespace EscapeRoomEngine.Portal.Runtime
|
||||
/// Whether this portal driver has a clone mirroring it at other portals. Disable this for the player.
|
||||
/// </summary>
|
||||
public bool hasClone = true;
|
||||
/// <summary>
|
||||
/// Whether this portal driver is the player. Used by portals to tell when the player has passed to another space.
|
||||
/// </summary>
|
||||
public bool player;
|
||||
|
||||
/// <summary>
|
||||
/// The side of the portal this became tracked on.
|
||||
|
||||
Reference in New Issue
Block a user