Answer the question
In order to leave comments, you need to log in
How to include the next array element in an array?
I'm making a player, how can I turn on the next and previous track?
Answer the question
In order to leave comments, you need to log in
0) Read the entire manual.
docs.unity3d.com/ru/current/Manual
1) Do not write like this
if (myBoolean == true) { ... }
достаточно будет
if (myBoolean) { ... }
private void PlayNext() { /* играть следующую песню */ }
private void PlayPrevious() { /* играть предыдущую песню */ }
private void PlayRandom() { /* играть случайную песню */ }
private void Play(int songNumber) { /* играть песню по ее номеру*/ }
Mass[i] - current song. Change i +/-1 value on button click? Or I misunderstood something..
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question