Skip to content

Commit

Permalink
Merge pull request #6 from AnnulusGames/v0.1.5
Browse files Browse the repository at this point in the history
V0.1.5
  • Loading branch information
AnnulusGames authored Sep 26, 2023
2 parents a1ddb5c + a25fe31 commit 0986e2d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
14 changes: 7 additions & 7 deletions MagicTween/Assets/MagicTween/Runtime/Core/TweenLinkTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ void OnEnable()
{
case LinkBehaviour.PlayOnEnable:
case LinkBehaviour.PauseOnDisablePlayOnEnable:
tween.Play();
if (tween.IsActive()) tween.Play();
break;
case LinkBehaviour.RestartOnEnable:
case LinkBehaviour.PauseOnDisableRestartOnEnable:
tween.Restart();
if (tween.IsActive()) tween.Restart();
break;
}
}
Expand All @@ -46,16 +46,16 @@ void OnDisable()
case LinkBehaviour.PauseOnDisable:
case LinkBehaviour.PauseOnDisablePlayOnEnable:
case LinkBehaviour.PauseOnDisableRestartOnEnable:
tween.Pause();
if (tween.IsActive()) tween.Pause();
break;
case LinkBehaviour.KillOnDisable:
tween.Kill();
if (tween.IsActive()) tween.Kill();
break;
case LinkBehaviour.CompleteOnDisable:
tween.Complete();
if (tween.IsActive()) tween.Complete();
break;
case LinkBehaviour.CompleteAndKillOnDisable:
tween.CompleteAndKill();
if (tween.IsActive()) tween.CompleteAndKill();
break;
}
}
Expand All @@ -69,7 +69,7 @@ void OnDestroy()
for (int i = 0; i < items.Count; i++)
{
var (tween, linkBehaviour) = items[i];
tween.Kill();
if (tween.IsActive()) tween.Kill();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public void Execute(in ArchetypeChunk chunk, int unfilteredChunkIndex, bool useE
var translator = *(commandComponentPtr + i);
var targetEntity = translator.TargetEntity;
if (!entityLookup.Exists(targetEntity)) continue;
if (!targetComponentLookup.HasComponent(targetEntity)) continue;

ref var target = ref targetComponentLookup.GetRefRW(targetEntity).ValueRW;

Expand Down
2 changes: 1 addition & 1 deletion MagicTween/Assets/MagicTween/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.annulusgames.magic-tween",
"version": "0.1.4",
"version": "0.1.5",
"displayName": "Magic Tween",
"description": "Extremely fast tween library implemented in Unity ECS",
"unity": "2022.1",
Expand Down
2 changes: 1 addition & 1 deletion MagicTween/ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ PlayerSettings:
vulkanEnableLateAcquireNextImage: 0
vulkanEnableCommandBufferRecycling: 1
loadStoreDebugModeEnabled: 0
bundleVersion: 0.1.4
bundleVersion: 0.1.5
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0
Expand Down

0 comments on commit 0986e2d

Please sign in to comment.