A quick question regarding c# | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

A quick question regarding c#

I am creating an ar game just for fun I will not publish it anywhere. so,there are 32 Buttons of piano šŸŽ¹. I have a script which reads a midi file and output the sound of that instance. there is also a method which can output the name of that key which is played. how can I use that script so whenever a particular key is played a method on the script which is attached to the particular gameobject. ex:- the output is 6 so, a method is invoked on the 6th button. thanks.

15th Oct 2017, 1:40 PM
Niraj Patidar
Niraj Patidar - avatar
2 Respostas
+ 1
Not sure, but the game sounds amazing.
15th Oct 2017, 1:53 PM
josh mizzi
josh mizzi - avatar
0
I can use a for loop if a condition is true I can invoke that method on that object
17th Oct 2017, 1:12 PM
Niraj Patidar
Niraj Patidar - avatar