refactor: Update Unity to 2022.3.62
This commit is contained in:
@@ -6,13 +6,13 @@ using UnityEngine;
|
||||
|
||||
namespace Cryville.Crtr.Skin.Components {
|
||||
public class PolygonSGO : SectionalGameObject {
|
||||
static readonly SimpleObjectPool<List<Vector3>> _ptPool = new SimpleObjectPool<List<Vector3>>(1024);
|
||||
static readonly SimpleObjectPool<List<float>> _lPool = new SimpleObjectPool<List<float>>(1024);
|
||||
static readonly SimpleObjectPool<List<Vector3>> _ptPool = new(1024);
|
||||
static readonly SimpleObjectPool<List<float>> _lPool = new(1024);
|
||||
|
||||
static readonly ListPool<int> _indexPool = new ListPool<int>();
|
||||
static readonly ListPool<Vector3> _vertPool = new ListPool<Vector3>();
|
||||
static readonly ListPool<Vector2> _uvPool = new ListPool<Vector2>();
|
||||
static readonly ArrayPool<Vector2> _shapePool = new ArrayPool<Vector2>(0x100, 0x10000);
|
||||
static readonly ListPool<int> _indexPool = new();
|
||||
static readonly ListPool<Vector3> _vertPool = new();
|
||||
static readonly ListPool<Vector2> _uvPool = new();
|
||||
static readonly ArrayPool<Vector2> _shapePool = new(0x100, 0x10000);
|
||||
|
||||
public PolygonSGO() {
|
||||
SubmitProperty("head", new PropOp.String(v => head.FrameName = v));
|
||||
@@ -50,9 +50,9 @@ namespace Cryville.Crtr.Skin.Components {
|
||||
return r;
|
||||
}
|
||||
|
||||
public SpriteInfo head = new SpriteInfo();
|
||||
public SpriteInfo body = new SpriteInfo();
|
||||
public SpriteInfo tail = new SpriteInfo();
|
||||
public SpriteInfo head = new();
|
||||
public SpriteInfo body = new();
|
||||
public SpriteInfo tail = new();
|
||||
|
||||
List<Vector3> vertices;
|
||||
List<float> lengths;
|
||||
@@ -104,7 +104,7 @@ namespace Cryville.Crtr.Skin.Components {
|
||||
List<Vector3> verts;
|
||||
List<Vector2> uvs;
|
||||
List<int> trih = null, trib = null, trit = null;
|
||||
static readonly List<int> _emptyTris = new List<int>();
|
||||
static readonly List<int> _emptyTris = new();
|
||||
|
||||
public override void Seal() {
|
||||
if (vertCount <= 1 || sumLength == 0) return;
|
||||
|
Reference in New Issue
Block a user