DynamicColor, Crystal prefab, Finish Puzzle B

This commit is contained in:
2022-11-28 23:31:00 +01:00
parent 60e390a993
commit 450c16c94f
63 changed files with 2915 additions and 361 deletions

View File

@@ -14,6 +14,13 @@ namespace EscapeRoomEngine.Engine.Runtime
Orientation.North, Orientation.East, Orientation.South, Orientation.West
});
public static Orientation FromAngle(int angle) => (Orientation)angle;
public static float Angle(this Orientation orientation) => (float)orientation;
public static int AngleInt(this Orientation orientation) => (int)orientation;
public static Orientation Rotated(this Orientation orientation, int quarterRotations) =>
orientation + quarterRotations * 90;
}
}