From 0eff4f7b26249102f62af145101439ba5193c384 Mon Sep 17 00:00:00 2001 From: Anatoly Brizhan Date: Mon, 18 Mar 2024 19:24:17 +0100 Subject: [PATCH] resolve #74 --- .../Runtime/Extensions/PlayerLoopSystemExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/BetterExtensions/Runtime/Extensions/PlayerLoopSystemExtensions.cs b/Assets/BetterExtensions/Runtime/Extensions/PlayerLoopSystemExtensions.cs index 7c532bc..bf36ded 100644 --- a/Assets/BetterExtensions/Runtime/Extensions/PlayerLoopSystemExtensions.cs +++ b/Assets/BetterExtensions/Runtime/Extensions/PlayerLoopSystemExtensions.cs @@ -203,7 +203,7 @@ public static bool UnsubscribeRecursive(this ref PlayerLoopSystem self, PlayerLo result = true; } #else - loopSystem.updateDelegate -= updateFunction; + self.updateDelegate -= updateFunction; result = true; #endif @@ -235,7 +235,7 @@ public static bool UnsubscribeRecursive(this ref PlayerLoopSystem self, Type loo result = true; } #else - loopSystem.updateDelegate -= updateFunction; + self.updateDelegate -= updateFunction; result = true; #endif }