var date = [“12.04.2011”,“2.04.2011”,“28.04.2011”,“17.04.2011”,“06.04.2011”];
var playerscore = [score1,score2,score3,score4,score5];
var playername = [“mark”,“joby”,“vijay”,“robert”,“paul”];
function OnGUI()
{
System.Array.Sort(playerscore,playername,date);
}
i am trying to sort the highest score .it is working fine i want the player name to corresponding score. i want to sort the score from highest to lowest. but i want the name and date should change according to the score that was sorted.
how to slove this problem. i am new to unity
thanks