public void prime(EndInventoryItem item) { txtTeamnaam.text = item.teamnaam; txtScore.text = item.score; if (item.image != null) { image = item.image; } }
public void AddScore(string teamNaam, string score) { Debug.Log("naam " + teamNaam + "score " + score); EndInventoryItem item = gameObject.AddComponent <EndInventoryItem>(); item.teamnaam = teamNaam; item.score = score; items.Add(item); }
private static int SortByScore(EndInventoryItem o1, EndInventoryItem o2) { return(o1.score.CompareTo(o2.score)); }