DynamicColor, Crystal prefab, Finish Puzzle B
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user