PuzzleMeasurement, add Realm, door ExitedFrom event

This commit is contained in:
2022-12-05 18:11:00 +01:00
parent 5449283e5d
commit b776e6744e
34 changed files with 344 additions and 63 deletions

View File

@@ -1,6 +1,8 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using Random = UnityEngine.Random;
namespace EscapeRoomEngine.Engine.Runtime.Utilities
{
@@ -37,4 +39,10 @@ namespace EscapeRoomEngine.Engine.Runtime.Utilities
public static Vector3Int ProjectAtHeight(this Vector2Int vector, int height) =>
new Vector3Int(vector.x, height, vector.y);
}
public static class FloatExtensions
{
public static TimeSpan ToTimeSpan(this float seconds) =>
new(0, 0, 0, Mathf.RoundToInt(seconds), 0);
}
}