laser puzzle platform and elevated platform module
This commit is contained in:
@@ -85,7 +85,7 @@ namespace EscapeRoomEngine.Engine.Runtime.Modules
|
||||
|
||||
srPlacement = placement;
|
||||
|
||||
Logger.Log($"{this} has been placed at {placement.position} (SR)", LogType.ModulePlacement);
|
||||
Logger.Log($"{this} has been placed at {placement.ToStringShort()} (SR)", LogType.ModulePlacement);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -111,7 +111,7 @@ namespace EscapeRoomEngine.Engine.Runtime.Modules
|
||||
Logger.Log($"Instantiating {this}", LogType.ModuleInstantiation);
|
||||
|
||||
State = Object.Instantiate(description.modulePrefab, parent, false);
|
||||
State.transform.localPosition = new Vector3(SrPosition.x + .5f, 0, SrPosition.z + .5f);
|
||||
State.transform.localPosition = new Vector3(SrPosition.x + .5f, SrPosition.y, SrPosition.z + .5f);
|
||||
State.transform.Rotate(Vector3.up, Orientation.Angle());
|
||||
State.name = ToString();
|
||||
State.SetModule(this);
|
||||
|
||||
Reference in New Issue
Block a user