Example #1
0
 void OnGetGuideList()
 {
     sdUICharacter.Instance.ShowFightUi();
     foreach (DictionaryEntry item in guideList)
     {
         List <sdGuide> list = item.Value as List <sdGuide>;
         list.Sort();
         bool bStop = false;
         while (!bStop)
         {
             if (list.Count <= 0)
             {
                 bStop = true;
                 break;
             }
             else
             {
                 sdGuide guide = list[0];
                 if (guide.isSkip)
                 {
                     list.Remove(guide);
                 }
                 else
                 {
                     bStop = true;
                     break;
                 }
             }
         }
     }
     isOperation = false;
 }
Example #2
0
    public int CompareTo(object item)
    {
        sdGuide compare = item as sdGuide;

        if (compare.id > id)
        {
            return(-1);
        }
        else if (compare.id < id)
        {
            return(1);
        }
        else
        {
            return(0);
        }
    }