PuzzleMeasurement, add Realm, door ExitedFrom event
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user