fix end terminal pluralisation

This commit is contained in:
2023-05-16 13:46:15 +02:00
parent 64a3eba203
commit 1b2a6395c4
6 changed files with 39 additions and 7 deletions

View File

@@ -245,7 +245,7 @@ MonoBehaviour:
m_MinValue: 2
m_MaxValue: 8
m_WholeNumbers: 1
m_Value: 4
m_Value: 3
m_OnValueChanged:
m_PersistentCalls:
m_Calls: []
@@ -605,7 +605,7 @@ RectTransform:
- {fileID: 7578302057580157030}
- {fileID: 9062548758054197003}
m_Father: {fileID: 0}
m_RootOrder: 0
m_RootOrder: -1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
@@ -792,7 +792,7 @@ MonoBehaviour:
m_MinValue: 2
m_MaxValue: 8
m_WholeNumbers: 1
m_Value: 2
m_Value: 3
m_OnValueChanged:
m_PersistentCalls:
m_Calls: []
@@ -2796,7 +2796,7 @@ PrefabInstance:
- target: {fileID: 2655555272253868335, guid: fa44f6047bc35a141a84d1b4e0919ff9,
type: 3}
propertyPath: m_Text
value: 2
value: 3
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
@@ -4326,7 +4326,7 @@ PrefabInstance:
- target: {fileID: 2655555272253868335, guid: fa44f6047bc35a141a84d1b4e0919ff9,
type: 3}
propertyPath: m_Text
value: 4
value: 3
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []

View File

@@ -18,7 +18,7 @@ namespace EscapeRoomEngine.Engine.Runtime.Measurements
/// </summary>
public static bool Store { get; set; }
public static bool PreferLessPlayed => GameControl.Instance.preferLessPlayed.Value;
public static int PuzzlesSolved => _currentSession.PuzzlesSolved.Count;
public static int PuzzlesSolved { get; private set; }
private static Dictionary<int, PuzzleMeasurement> _runningMeasurements;
private static Session _currentSession;
@@ -97,6 +97,7 @@ namespace EscapeRoomEngine.Engine.Runtime.Measurements
PuzzleStorage.Instance.EndMeasurement(_currentSession, puzzle, measurement);
}
_runningMeasurements.Remove(puzzle.Id);
PuzzlesSolved++;
Logger.Log($"Solved {puzzle} with measurement {measurement}", LogType.Measuring);
}