private void Update()
 {
     if (Input.GetKeyDown(KeyCode.B))
     {
         PerformanceHelper.WatchPerformance("快速排序算法效率  ", () => { QuickSortHelper.Sort <int>(data2, 0, numberCount - 1, rather, less); });
         for (int dex = 0; dex < data.Count; ++dex)
         {
             if (IsExit(data[dex]) == false)
             {
                 Debug.LogError("Not Exit " + data[dex]);
             }
         }
     }
 }
Beispiel #2
0
 public OperationAdapter()
 {
     sortTarget   = new QuickSortHelper();
     searchTarget = new BinarySearchHelper();
 }