refactor: Update Unity to 2022.3.62
This commit is contained in:
@@ -9,7 +9,7 @@ namespace Cryville.Crtr.Skin.Components {
|
||||
}
|
||||
|
||||
static readonly Dictionary<float, int> uvrefl
|
||||
= new Dictionary<float, int>() {
|
||||
= new() {
|
||||
{-0.5f, 0}, {-0.4f, 1}, {0.4f, 2}, {0.5f, 3},
|
||||
};
|
||||
static Vector2[] _origuv;
|
||||
@@ -30,7 +30,7 @@ namespace Cryville.Crtr.Skin.Components {
|
||||
}
|
||||
}
|
||||
|
||||
Vector2 _border = new Vector2(0, 1);
|
||||
Vector2 _border = new(0, 1);
|
||||
public Vector2 Border {
|
||||
get { return _border; }
|
||||
set {
|
||||
@@ -67,12 +67,12 @@ namespace Cryville.Crtr.Skin.Components {
|
||||
case 3: x = 1; bx = 1; break;
|
||||
default: throw new NotSupportedException("Built-in resource corrupted");
|
||||
}
|
||||
float y;
|
||||
switch ((int)muv[i].y) {
|
||||
case 0: y = 0; break;
|
||||
case 3: y = 1; break;
|
||||
default: throw new NotSupportedException("Built-in resource corrupted");
|
||||
}
|
||||
|
||||
var y = (int)muv[i].y switch {
|
||||
0 => 0,
|
||||
3 => (float)1,
|
||||
_ => throw new NotSupportedException("Built-in resource corrupted"),
|
||||
};
|
||||
_uvs[i] = frame.Frame.GetUV(x, y);
|
||||
bx -= 0.5f; y -= 0.5f;
|
||||
_verts[i] = new Vector3(bx, 0, y);
|
||||
|
Reference in New Issue
Block a user