refactor: Update Unity to 2022.3.62
This commit is contained in:
@@ -75,7 +75,7 @@ namespace Cryville.Crtr.Skin {
|
||||
var obj = new GameObject("__obj__");
|
||||
obj.transform.SetParent(c.Transform, false);
|
||||
obj.AddComponent<TransformInterface>();
|
||||
return new SkinContext[] { new SkinContext(obj.transform) };
|
||||
return new SkinContext[] { new(obj.transform) };
|
||||
}
|
||||
}
|
||||
public class Anchor : SkinSelector {
|
||||
@@ -86,8 +86,7 @@ namespace Cryville.Crtr.Skin {
|
||||
public override string ToString() { return string.Format(".{0}", IdentifierManager.Shared.Retrieve(Name)); }
|
||||
|
||||
public override IEnumerable<SkinContext> MatchStatic(ISkinnableGroup g, SkinContext c) {
|
||||
IReadOnlyCollection<CAnchor> anchors;
|
||||
if (g.TryGetAnchorsByName(Name, out anchors)) {
|
||||
if (g.TryGetAnchorsByName(Name, out IReadOnlyCollection<CAnchor> anchors)) {
|
||||
return anchors.Select(a => a.SkinContext);
|
||||
}
|
||||
else return Enumerable.Empty<SkinContext>();
|
||||
|
Reference in New Issue
Block a user