Esempio n. 1
0
 public void onFinishDrag()
 {
     if (!Interpreter.isInterpreting)
     {
         if (currentDragItem)
         {
             if (catList)
             {
                 var catIndex = Utils.ListContainsNull(catList.list);
                 if (catIndex >= 0)
                 {
                     catList.insertAtPosition(catIndex);
                 }
             }
             if (dogList)
             {
                 var dogIndex = Utils.ListContainsNull(dogList.list);
                 if (dogIndex >= 0)
                 {
                     dogList.insertAtPosition(dogIndex);
                 }
             }
             Destroy(currentDragItem);
             currentDragItem = null;
         }
     }
 }