public void OnButtonRemoveAll() { ApplicationData.ClearScores(); Transform[] children = scoreListPanel.GetComponentsInChildren <Transform>(); foreach (Transform child in children) { Destroy(child.gameObject); } }
public void OnButtonRemoveAll() { ApplicationData.ClearScores(); Transform[] children = scoreListPanel.GetComponentsInChildren <Transform>(); foreach (Transform child in children) { Destroy(child.gameObject); } }