Skip to content

Commit 906850c

Browse files
authored
Merge pull request Habrador#5 from masoudarvishian/bugfix_update_example
Bug fix for the Update design pattern example
2 parents f03d139 + 7742d0f commit 906850c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Patterns/9. Update/Custom Update method/Scripts/GameController.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static void RegisterUpdateableObject(IUpdateable obj)
6363
//Unregister
6464
public static void UnregisterUpdateableObject(IUpdateable obj)
6565
{
66-
if (!updateableObjects.Contains(obj))
66+
if (updateableObjects.Contains(obj))
6767
{
6868
updateableObjects.Remove(obj);
6969
}

0 commit comments

Comments
 (0)