using UnityEngine; public class TreeMapDelete : MonoBehaviour { // Use this for initialization void Start () { TreeMap map = new TreeMap (); for (int count = 1; count < 6; count++) { map = map.put (count, count); map.checkDepth (); } // ただ消すための数字をここに入れているだけ List list = new List(); for (int count = 1; count < 6; count++) { list = list.addLast (count); } foreach(int num in list){ Debug.Log(num); map = map.delete(num); map.checkDepth(); } Debug.Log ("end"); } }