This commit is contained in:
2025-07-21 12:29:03 +08:00
52 changed files with 145884 additions and 122604 deletions

View File

@@ -25,9 +25,7 @@ namespace Ichni.RhythmGame
{
Hold hold = Instantiate(EditorManager.instance.basePrefabs.holdNote, parentElement.transform)
.GetComponent<Hold>();
hold.Initialize(elementName, id, tags, EditorManager.instance.useNotePrefab ? false : isFirstGenerated, parentElement);
hold.exactJudgeTime = exactJudgeTime;
hold.holdEndTime = holdEndTime;
@@ -73,7 +71,7 @@ namespace Ichni.RhythmGame
base.UpdateNoteInMovableTrack();
}
if (noteVisual is NoteVisualBaseHold noteVisualHold)
if (noteVisual is INoteVisualHold noteVisualHold)
{
noteVisualHold.UpdateHoldInMovableTrack();
}
@@ -82,7 +80,7 @@ namespace Ichni.RhythmGame
public override void UpdateNoteInStaticTrack()
{
base.UpdateNoteInStaticTrack();
if (noteVisual is NoteVisualBaseHold noteVisualHold)
if (noteVisual is INoteVisualHold noteVisualHold)
{
noteVisualHold.UpdateHoldInStaticTrack();
}
@@ -157,7 +155,6 @@ namespace Ichni.RhythmGame
if (isFirstJudged && songTime < exactJudgeTime)
{
isFirstJudged = false;
isHolding = false;
isFinalJudged = false;

View File

@@ -67,9 +67,7 @@ namespace Ichni.RhythmGame
public override void Refresh()
{
base.Refresh();
if (noteVisual != null)
{
noteVisual.Refresh();

View File

@@ -3,6 +3,7 @@ using System.Collections;
using System.Collections.Generic;
using Ichni.Editor;
using UnityEngine;
using UnityEngine.Serialization;
namespace Ichni.RhythmGame
{
@@ -16,7 +17,7 @@ namespace Ichni.RhythmGame
public GameObject judgeEffect;
public List<GameObject> notePartList;
public List<GameObject> effectPartList;
public List<GameObject> effectPrefabList;
public EffectSubmodule effectSubmodule { get; set; }
public SelectSubmodule selectSubmodule { get; set; }

View File

@@ -19,4 +19,11 @@ namespace Ichni.RhythmGame
}
}
public interface INoteVisualHold
{
public Hold hold { get; set; }
public void UpdateHoldInMovableTrack();
public void UpdateHoldInStaticTrack();
}
}