1111 Signed-off-by: TRAfoer <lhf190@outlook.com>

Signed-off-by: TRAfoer <lhf190@outlook.com>
This commit is contained in:
2025-12-07 14:34:41 +08:00
parent d0d373a948
commit 1bbb1c51ab
26 changed files with 142116 additions and 2349 deletions

View File

@@ -51,6 +51,7 @@ namespace Ichni.RhythmGame
{
EditorManager.instance.projectManager.notePrefabManager.LoadNotePrefab(flick, GetNoteTypeName(flick) + "_Prefab");
}
if (isFirstGenerated) flick.AfterInitialize();
return flick;
}

View File

@@ -65,7 +65,7 @@ namespace Ichni.RhythmGame
{
EditorManager.instance.projectManager.notePrefabManager.LoadNotePrefab(hold, GetNoteTypeName(hold) + "_Prefab");
}
if (isFirstGenerated) hold.AfterInitialize();
return hold;
}

View File

@@ -32,7 +32,11 @@ namespace Ichni.RhythmGame
public Vector2 noteScreenPosition;
[FormerlySerializedAs("isJudged")] public bool isFirstJudged;
public override int HierarchyPriority => -10;
public override void Initialize(string name, Guid elementGuid, List<string> tags, bool isFirstGenerated, GameElement parentElement)
{
base.Initialize(name, elementGuid, tags, isFirstGenerated, parentElement);
}
public override void AfterInitialize()
{
base.AfterInitialize();

View File

@@ -47,6 +47,7 @@ namespace Ichni.RhythmGame
{
EditorManager.instance.projectManager.notePrefabManager.LoadNotePrefab(stay, GetNoteTypeName(stay) + "_Prefab");
}
if (isFirstGenerated) stay.AfterInitialize();
return stay;
}

View File

@@ -46,6 +46,7 @@ namespace Ichni.RhythmGame
{
EditorManager.instance.projectManager.notePrefabManager.LoadNotePrefab(tap, GetNoteTypeName(tap) + "_Prefab");
}
if (isFirstGenerated) tap.AfterInitialize();
return tap;
}