This repository was archived by the owner on Feb 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11using System . Collections . Generic ;
2+ using MagicTween . Core ;
23using UnityEngine ;
34
45namespace MagicTween
@@ -38,6 +39,7 @@ void OnDisable()
3839#if UNITY_EDITOR
3940 if ( isQuittingPlayMode ) return ;
4041#endif
42+ if ( ! TweenWorld . World . IsCreated ) return ;
4143 for ( int i = 0 ; i < items . Count ; i ++ )
4244 {
4345 var ( tween , linkBehaviour ) = items [ i ] ;
@@ -66,6 +68,7 @@ void OnDestroy()
6668#if UNITY_EDITOR
6769 if ( isQuittingPlayMode ) return ;
6870#endif
71+ if ( ! TweenWorld . World . IsCreated ) return ;
6972 for ( int i = 0 ; i < items . Count ; i ++ )
7073 {
7174 var ( tween , linkBehaviour ) = items [ i ] ;
Original file line number Diff line number Diff line change 11{
22 "name" : " com.annulusgames.magic-tween" ,
3- "version" : " 0.1.6 " ,
3+ "version" : " 0.1.7 " ,
44 "displayName" : " Magic Tween" ,
55 "description" : " Extremely fast tween library implemented in Unity ECS" ,
66 "unity" : " 2022.1" ,
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ PlayerSettings:
133133 vulkanEnableLateAcquireNextImage : 0
134134 vulkanEnableCommandBufferRecycling : 1
135135 loadStoreDebugModeEnabled : 0
136- bundleVersion : 0.1.6
136+ bundleVersion : 0.1.7
137137 preloadedAssets : []
138138 metroInputSource : 0
139139 wsaTransparentSwapchain : 0
You can’t perform that action at this time.
0 commit comments