Substantial Object生成调整
可以正确的生成NoteVisual
This commit is contained in:
@@ -9,31 +9,36 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
public partial class DTMNoteVisual : NoteVisualBase
|
||||
{
|
||||
public static DTMNoteVisual GenerateElement(string elementName, Guid id, List<string> tags,
|
||||
bool isFirstGenerated, GameElement parentElement, string themeBundleName, string objectName)
|
||||
bool isFirstGenerated, string themeBundleName, string objectName, GameElement parentElement)
|
||||
{
|
||||
DTMNoteVisual noteVisual = SubstantialObject.GenerateElement(elementName, id, tags,
|
||||
isFirstGenerated, themeBundleName, objectName, parentElement).GetComponent<DTMNoteVisual>();
|
||||
|
||||
|
||||
return noteVisual;
|
||||
}
|
||||
|
||||
public override void FirstSetUpObject(bool isFirstGenerated)
|
||||
{
|
||||
NoteBase note = parentElement as NoteBase;
|
||||
if (note == null) throw new System.Exception("NoteVisual只能生成在Note下。");
|
||||
noteVisual.note = note;
|
||||
note.noteVisual = noteVisual;
|
||||
if(note == null) throw new System.Exception("NoteVisual只能生成在Note下。");
|
||||
this.note = note;
|
||||
note.noteVisual = this;
|
||||
|
||||
if (isFirstGenerated)
|
||||
{
|
||||
//noteVisual.effectSubmodule.effectCollection["Generate"].Add(new BasicNoteGenerateExpand(noteVisual.note));
|
||||
//noteVisual.effectSubmodule.effectCollection["Perfect"].Add(new BasicNotePerfectBurst(noteVisual.note));
|
||||
//noteVisual.effectSubmodule.effectCollection["Good"].Add(new BasicNoteGoodBurst(noteVisual.note));
|
||||
//noteVisual.effectSubmodule.effectCollection["Bad"].Add(new BasicNoteBadExpand(noteVisual.note));
|
||||
//noteVisual.effectSubmodule.effectCollection["Miss"].Add(new BasicNoteMissPale(noteVisual.note));
|
||||
//effectSubmodule.effectCollection["Generate"].Add(new BasicNoteGenerateExpand(this));
|
||||
effectSubmodule.effectCollection["Perfect"].Add(new DTMNotePerfectBurst(this));
|
||||
//effectSubmodule.effectCollection["Good"].Add(new BasicNoteGoodBurst(this));
|
||||
//effectSubmodule.effectCollection["Bad"].Add(new BasicNoteBadExpand(this));
|
||||
//effectSubmodule.effectCollection["Miss"].Add(new BasicNoteMissPale(this));
|
||||
}
|
||||
|
||||
return noteVisual;
|
||||
}
|
||||
}
|
||||
|
||||
public partial class DTMNoteVisual
|
||||
{
|
||||
|
||||
|
||||
public override void SaveBM()
|
||||
{
|
||||
matchedBM = new Beatmap.DTMNoteVisual_BM(elementName, elementGuid, tags,
|
||||
@@ -60,13 +65,13 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
public override void ExecuteBM()
|
||||
{
|
||||
matchedElement = DTMNoteVisual.GenerateElement(elementName, elementGuid, tags, false,
|
||||
GetElement(attachedElementGuid), themeBundleName, objectName);
|
||||
themeBundleName, objectName, GetElement(attachedElementGuid));
|
||||
}
|
||||
|
||||
public override GameElement DuplicateBM(GameElement parent)
|
||||
{
|
||||
return DTMNoteVisual.GenerateElement(elementName, elementGuid, tags, false, parent, themeBundleName,
|
||||
objectName);
|
||||
return DTMNoteVisual.GenerateElement(elementName, elementGuid, tags, false, themeBundleName,
|
||||
objectName, parent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user