mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Formatting cleanup
This commit is contained in:
parent
34b08bceec
commit
528a182c93
@ -832,7 +832,7 @@ public class SpineEditorUtilities : AssetPostprocessor {
|
|||||||
public static SkeletonAnimator InstantiateSkeletonAnimator (SkeletonDataAsset skeletonDataAsset, Skin skin = null) {
|
public static SkeletonAnimator InstantiateSkeletonAnimator (SkeletonDataAsset skeletonDataAsset, Skin skin = null) {
|
||||||
GameObject go = new GameObject(skeletonDataAsset.name.Replace("_SkeletonData", ""), typeof(MeshFilter), typeof(MeshRenderer), typeof(Animator), typeof(SkeletonAnimator));
|
GameObject go = new GameObject(skeletonDataAsset.name.Replace("_SkeletonData", ""), typeof(MeshFilter), typeof(MeshRenderer), typeof(Animator), typeof(SkeletonAnimator));
|
||||||
|
|
||||||
if(skeletonDataAsset.controller == null){
|
if (skeletonDataAsset.controller == null) {
|
||||||
SkeletonBaker.GenerateMecanimAnimationClips(skeletonDataAsset);
|
SkeletonBaker.GenerateMecanimAnimationClips(skeletonDataAsset);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -912,8 +912,6 @@ public class SpineEditorUtilities : AssetPostprocessor {
|
|||||||
//TK2D Support
|
//TK2D Support
|
||||||
const string SPINE_TK2D_DEFINE = "SPINE_TK2D";
|
const string SPINE_TK2D_DEFINE = "SPINE_TK2D";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static void EnableTK2D () {
|
static void EnableTK2D () {
|
||||||
bool added = false;
|
bool added = false;
|
||||||
foreach (BuildTargetGroup group in System.Enum.GetValues(typeof(BuildTargetGroup))) {
|
foreach (BuildTargetGroup group in System.Enum.GetValues(typeof(BuildTargetGroup))) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user