SpriteSkinManager.cs 671 B

1234567891011121314151617181920212223
  1. namespace UnityEngine.U2D.Animation
  2. {
  3. internal class SpriteSkinManager
  4. {
  5. // Doing this to hide it from user adding it from Inspector
  6. [DefaultExecutionOrder(-1)]
  7. [ExecuteInEditMode]
  8. internal class SpriteSkinManagerInternal : MonoBehaviour
  9. {
  10. #if ENABLE_ANIMATION_COLLECTION
  11. void LateUpdate()
  12. {
  13. if (SpriteSkinComposite.instance.helperGameObject != gameObject)
  14. {
  15. GameObject.DestroyImmediate(gameObject);
  16. return;
  17. }
  18. SpriteSkinComposite.instance.LateUpdate();
  19. }
  20. #endif
  21. }
  22. }
  23. }