QuickCopy & fix NoteEffects
This commit is contained in:
@@ -12,12 +12,12 @@ namespace Ichni.RhythmGame.ThemeBundles.Basic
|
||||
{
|
||||
public class BasicNoteGenerateExpand : NoteGenerateEffect
|
||||
{
|
||||
public BasicNoteGenerateExpand(NoteBase note)
|
||||
public BasicNoteGenerateExpand(NoteVisualBase noteVisual)
|
||||
{
|
||||
this.note = note;
|
||||
this.note = noteVisual.note;
|
||||
this.noteVisual = noteVisual;
|
||||
this.generateTime = 1f;
|
||||
this.effectTime = 0.1f;
|
||||
this.noteVisual = note.noteVisual.GetComponent<BasicNoteVisual>();
|
||||
}
|
||||
|
||||
public override void Recover()
|
||||
@@ -61,9 +61,9 @@ namespace Ichni.RhythmGame.ThemeBundles.Basic
|
||||
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType()
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new BasicNoteGenerateExpand(GameElement_BM.GetElement(attachedNoteID) as NoteBase);
|
||||
return new BasicNoteGenerateExpand(attachedGameElement as NoteVisualBase);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user