Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 906850c

Browse files
Merge pull request #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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /