Merge branch 'main' of https://github.com/MiracleForest-Ichni/IchniCreatorStudio
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -67,9 +67,7 @@ namespace Ichni.RhythmGame
|
||||
public override void Refresh()
|
||||
{
|
||||
base.Refresh();
|
||||
|
||||
|
||||
|
||||
|
||||
if (noteVisual != null)
|
||||
{
|
||||
noteVisual.Refresh();
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -19,4 +19,11 @@ namespace Ichni.RhythmGame
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public interface INoteVisualHold
|
||||
{
|
||||
public Hold hold { get; set; }
|
||||
public void UpdateHoldInMovableTrack();
|
||||
public void UpdateHoldInStaticTrack();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user