refactor: Update Unity to 2022.3.62

This commit is contained in:
2025-06-21 01:22:02 +08:00
parent d71bf7d4a5
commit 283783954f
112 changed files with 778 additions and 907 deletions

View File

@@ -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);