コード例 #1
0
 //穿装备和脱装备成功后的回调
 public void equipResult(List <AttrChange> attrs, int types)
 {
     if (fatherWindow is CardBookWindow)
     {
         if (CardManagerment.Instance.showChatEquips != null)
         {
             CardManagerment.Instance.showChatEquips.Clear();
         }
         finishWindow();
         CardBookWindow win = fatherWindow as CardBookWindow;
         EventDelegate.Add(win.OnStartAnimFinish, () => {
             win.equipNewItem(attrs, types);
         }, true);
     }
     else
     {
         WindowBase tempFatherWindow = fatherWindow.GetFatherWindow();
         fatherWindow.destoryWindow();
         if (CardManagerment.Instance.showChatEquips != null)
         {
             CardManagerment.Instance.showChatEquips.Clear();
         }
         finishWindow();
         if (tempFatherWindow is CardBookWindow)
         {
             CardBookWindow win = tempFatherWindow as CardBookWindow;
             EventDelegate.Add(win.OnStartAnimFinish, () => {
                 win.equipNewItem(attrs, types);
             }, true);
         }
     }
     EquipManagerment.Instance.finishEquipChange();
 }