comment pass
This commit is contained in:
@@ -3,8 +3,14 @@ using UnityEngine;
|
||||
|
||||
namespace EscapeRoomEngine.Engine.Runtime.Modules
|
||||
{
|
||||
/// <summary>
|
||||
/// The main component of any puzzle module.
|
||||
/// </summary>
|
||||
public class PuzzleModule : Module
|
||||
{
|
||||
/// <summary>
|
||||
/// The module state of this puzzle as a <see cref="PuzzleState"/>.
|
||||
/// </summary>
|
||||
internal PuzzleState PuzzleState => PuzzleState.FromState(State);
|
||||
|
||||
internal PuzzleModule(Space space, PuzzleModuleDescription description) : base(space, description) {}
|
||||
@@ -13,6 +19,7 @@ namespace EscapeRoomEngine.Engine.Runtime.Modules
|
||||
{
|
||||
base.InstantiateModule(parent);
|
||||
|
||||
// the room needs to know about this puzzle
|
||||
space.room.AddPuzzle(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user