QuickCopy & fix NoteEffects
This commit is contained in:
@@ -11,10 +11,10 @@ namespace Ichni.RhythmGame.ThemeBundles.Basic
|
||||
public class BasicNoteBadExpand : NoteBadEffect
|
||||
{
|
||||
Renderer noteMainRenderer;
|
||||
public BasicNoteBadExpand(NoteBase note)
|
||||
public BasicNoteBadExpand(NoteVisualBase noteVisual)
|
||||
{
|
||||
this.note = note;
|
||||
this.noteVisual = note.noteVisual.GetComponent<BasicNoteVisual>();
|
||||
this.note = noteVisual.note;
|
||||
this.noteVisual = note.noteVisual;
|
||||
this.noteMainRenderer = noteVisual.noteMain.GetComponent<Renderer>();
|
||||
this.effectTime = 0.1f;
|
||||
}
|
||||
@@ -59,9 +59,9 @@ namespace Ichni.RhythmGame.ThemeBundles.Basic
|
||||
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType()
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new BasicNoteBadExpand(GameElement_BM.GetElement(attachedNoteID) as NoteBase);
|
||||
return new BasicNoteBadExpand(attachedGameElement as NoteVisualBase);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user