Timeline for Array with multiple linked objects in Unity
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 19, 2017 at 16:59 | history | edited | DMGregory♦ | CC BY-SA 3.0 |
Removing UnityScript tag, since OP reports this is in C#, not UnityScript (different language)
|
| Oct 19, 2017 at 16:58 | vote | accept | ViNk | ||
| Oct 19, 2017 at 16:55 | answer | added | DMGregory♦ | timeline score: 0 | |
| Oct 19, 2017 at 16:52 | comment | added | ViNk | For now, I was digging onto Dictionary which is way more complicated for a beginner like me, but... Wow! That double array might work well for me, I ll try it out once. Thanks! | |
| Oct 19, 2017 at 16:48 | comment | added | Hellium |
Do you mean you have two separate arrays? One for the score value and the other for the player name? If so, you will surely be interested in this question Otherwise, the Sort method accepts an instance of a class implementing the IComparer interface, so you can define your own compare method see here
|
|
| Oct 19, 2017 at 16:42 | history | asked | ViNk | CC BY-SA 3.0 |