PO/Library/PackageCache/com.unity.2d.animation@5.0.7/Runtime/SpriteSkinManager.cs

24 lines
671 B
C#
Raw Normal View History

2022-01-12 10:06:03 +03:00
namespace UnityEngine.U2D.Animation
{
internal class SpriteSkinManager
{
// Doing this to hide it from user adding it from Inspector
[DefaultExecutionOrder(-1)]
[ExecuteInEditMode]
internal class SpriteSkinManagerInternal : MonoBehaviour
{
#if ENABLE_ANIMATION_COLLECTION
void LateUpdate()
{
if (SpriteSkinComposite.instance.helperGameObject != gameObject)
{
GameObject.DestroyImmediate(gameObject);
return;
}
SpriteSkinComposite.instance.LateUpdate();
}
#endif
}
}
}