From 845a040db9f8be89ae7516f9fe8fc5187d3fffd2 Mon Sep 17 00:00:00 2001 From: OpOpYaDev Date: Tue, 12 Mar 2024 23:48:09 +0000 Subject: [PATCH] Merge pull request #73 from techno-dwarf-works/dev Version 1.5.97: fix PlayerLoop subscribing --- Runtime/Utility/PlayerLoopUtility.cs | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Utility/PlayerLoopUtility.cs b/Runtime/Utility/PlayerLoopUtility.cs index 32a6fe7..2912196 100644 --- a/Runtime/Utility/PlayerLoopUtility.cs +++ b/Runtime/Utility/PlayerLoopUtility.cs @@ -19,7 +19,7 @@ public static void SubscribeToLoop(Type loopType, PlayerLoopSystem.UpdateFunctio } var currentSystem = PlayerLoop.GetCurrentPlayerLoop(); - ref var loopSystem = ref currentSystem.GetSubSystem(loopType); + ref var loopSystem = ref currentSystem.GetSubSystemRecursive(loopType); if (loopSystem.type != loopType) { var message = $"Not found {nameof(loopType)}({loopType.Name})"; diff --git a/package.json b/package.json index 83970e0..2c1237d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "com.uurha.betterextensions", "displayName": "Better Extensions", - "version": "1.5.96", + "version": "1.5.97", "unity": "2021.3", "description": "Unity extensions, serialize extension, async extension, string extension and UI extensions", "dependencies": {