예제 #1
0
 void OnGUI()
 {
     if (TK2DUnpacker.CollectionDataType == null)
     {
         EditorGUILayout.LabelField("There is no tk2dSpriteAnmation Type found");
         return;
     }
     else
     {
         animation = EditorGUILayout.ObjectField("Animation Data", animation, TK2DUnpacker.SpriteAnimationType, true);
         if (GUILayout.Button("Unpack"))
         {
             Close();
             UnboundCoroutine.Start(TK2DUnpacker.DecomposeTK2DAnimation(animation));
         }
     }
 }
예제 #2
0
 void OnGUI()
 {
     if (TK2DUnpacker.CollectionDataType == null)
     {
         EditorGUILayout.LabelField("There is no tk2dSpriteCollectionData Type found");
         return;
     }
     else
     {
         collection = EditorGUILayout.ObjectField("Collection Data", collection, TK2DUnpacker.CollectionDataType, true);
         if (GUILayout.Button("Unpack"))
         {
             Close();
             TK2DUnpacker.UnpackToSprite(collection);
         }
     }
 }