Inheritance: BaseHierarchySort
Exemple #1
0
 public override int Compare(GameObject lhs, GameObject rhs)
 {
     if(lhs == rhs) {
         return 0;
     }
     else if(lhs.IsFolder() && !rhs.IsFolder()) {
         return -1;
     }
     else if(!lhs.IsFolder() && rhs.IsFolder()) {
         return 1;
     }
     else {
         if(defSort == null) {
             defSort = new TransformSort();
         }
         return defSort.Compare(lhs, rhs);
     }
 }