0
|
1 using UnityEngine;
|
|
2 using System.Collections;
|
|
3
|
|
4 public class TreeMapTest : MonoBehaviour {
|
|
5 private int ReturnNumber;
|
|
6 private bool checknull = true;
|
|
7 // Update is called once per frame
|
|
8 public void Start () {
|
|
9 TreeMap<int, int> map = new TreeMap<int,int>();
|
|
10 Debug.Log (map);
|
|
11 for (int count = 5; count > -10; count--) {
|
|
12 map = map.put(count, count);
|
|
13 map.checkDepth();
|
|
14 Debug.Log("------------------------------------------");
|
|
15
|
|
16
|
|
17 }
|
|
18
|
|
19 // for (int count = 100; count > -10; count--) {
|
|
20 // ReturnNumber = map.get(count);
|
|
21 // if(ReturnNumber == null){
|
|
22 // checknull = false;
|
|
23 // }
|
|
24 // //this points null check.
|
|
25 // if (checknull){
|
|
26 // Debug.Log(map.get());
|
|
27 // }
|
|
28
|
|
29 Debug.Log ("end");
|
|
30
|
|
31 }
|
|
32 }
|
|
33
|