using UnityEngine; using System.Collections; public class TreeMapTest : MonoBehaviour { private int ReturnNumber; private bool checknull = true; // Update is called once per frame public void Start () { TreeMap map = new TreeMap(); Debug.Log (map); for (int count = 5; count > -10; count--) { map = map.put(count, count); map.checkDepth(); Debug.Log("------------------------------------------"); } // for (int count = 100; count > -10; count--) { // ReturnNumber = map.get(count); // if(ReturnNumber == null){ // checknull = false; // } // //this points null check. // if (checknull){ // Debug.Log(map.get()); // } Debug.Log ("end"); } }