diff --git a/spine-unity/Assets/spine-unity/SkeletonRenderer.cs b/spine-unity/Assets/spine-unity/SkeletonRenderer.cs index 678108678..3569686c5 100644 --- a/spine-unity/Assets/spine-unity/SkeletonRenderer.cs +++ b/spine-unity/Assets/spine-unity/SkeletonRenderer.cs @@ -80,11 +80,7 @@ public class SkeletonRenderer : MonoBehaviour { /// Add and prepare a Spine component that derives from SkeletonRenderer to a GameObject at runtime. /// T should be SkeletonRenderer or any of its derived classes. public static T AddSpineComponent (GameObject gameObject, SkeletonDataAsset skeletonDataAsset) where T : SkeletonRenderer { - - // Assist [RequireComponent] enforcement. - gameObject.AddComponent(); - gameObject.AddComponent(); - + var c = gameObject.AddComponent(); if (skeletonDataAsset != null) {