We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d19f173 commit 6c785faCopy full SHA for 6c785fa
1 file changed
scripts/noteSystem/NoteManager.cs
@@ -89,18 +89,19 @@ public override void _Process(double delta)
89
}
90
91
92
- public void CreateNote(ArrowType arrow)
+ public Note CreateNote(ArrowType arrow)
93
{
94
- CreateNote(_arrows[arrow]);
+ return CreateNote(_arrows[arrow]);
95
96
97
- private void CreateNote(ArrowData arrowData)
+ private Note CreateNote(ArrowData arrowData)
98
99
var noteScene = ResourceLoader.Load<PackedScene>("res://scripts/noteSystem/note.tscn");
100
var note = noteScene.Instantiate<Note>();
101
102
note.Init(arrowData, 1.0f, -1);
103
104
AddChild(note);
105
+ return note;
106
107
0 commit comments