desert portal
This commit is contained in:
@@ -29,6 +29,7 @@ namespace EscapeRoomEngine.Engine.Runtime
|
||||
|
||||
[InfoBox("If a space was generated without any puzzles in it, the engine will try generating another new space. To prevent infinite loops, the amount of retries is bound.")]
|
||||
public int maxSpaceGenerationTries;
|
||||
public Vector3 roomOffset;
|
||||
[Required] public EngineTheme theme;
|
||||
|
||||
public int NumberOfRooms => _rooms.Count;
|
||||
@@ -62,8 +63,9 @@ namespace EscapeRoomEngine.Engine.Runtime
|
||||
_rooms.Add(room);
|
||||
|
||||
GenerateSpace(room, entrance); // TODO: rooms with more than one space
|
||||
|
||||
room.InstantiateRoom(_playSpaceOrigin.transform, (_rooms.Count - 1).ToString());
|
||||
|
||||
var roomId = _rooms.Count - 1;
|
||||
room.InstantiateRoom(_playSpaceOrigin.transform, roomId * roomOffset, roomId.ToString());
|
||||
|
||||
UpdateUI();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user