public static Vector2Int AsVector2Int(this DirectionType directionType) { return(new Vector2Int( directionType.IsLeft() ? -1 : directionType.IsRight() ? 1 : 0, directionType.IsTop() ? 1 : directionType.IsBottom() ? -1 : 0 )); }