Remove dynamic judge anchors. Add judge time properties.

This commit is contained in:
2023-01-27 16:05:57 +08:00
parent cc985844cd
commit 3d1a11f78b
3 changed files with 17 additions and 36 deletions

View File

@@ -77,10 +77,10 @@ namespace Cryville.Crtr.Event {
a_head = RegisterAnchor(_a_head);
a_tail = RegisterAnchor(_a_tail);
}
protected Anchor RegisterAnchor(int name, bool hasPropSrcs = false) {
protected Anchor RegisterAnchor(int name, int propSrcCount = 0) {
var go = new GameObject("." + IdentifierManager.SharedInstance.Retrieve(name)).transform;
go.SetParent(gogroup, false);
var result = new Anchor(name, go, hasPropSrcs);
var result = new Anchor(name, go, propSrcCount);
List<Anchor> list;
if (!Anchors.TryGetValue(name, out list))
Anchors.Add(name, list = new List<Anchor>());