diff --git a/Assets/Patterns/9. Update/Custom Update method/Scripts/GameController.cs b/Assets/Patterns/9. Update/Custom Update method/Scripts/GameController.cs index a737caa..f5dc36c 100644 --- a/Assets/Patterns/9. Update/Custom Update method/Scripts/GameController.cs +++ b/Assets/Patterns/9. Update/Custom Update method/Scripts/GameController.cs @@ -63,7 +63,7 @@ public static void RegisterUpdateableObject(IUpdateable obj) //Unregister public static void UnregisterUpdateableObject(IUpdateable obj) { - if (!updateableObjects.Contains(obj)) + if (updateableObjects.Contains(obj)) { updateableObjects.Remove(obj); }