Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback for “Unity (C#) API” #31

Open
mrphilipjoel opened this issue Jan 14, 2024 · 1 comment
Open

Feedback for “Unity (C#) API” #31

mrphilipjoel opened this issue Jan 14, 2024 · 1 comment

Comments

@mrphilipjoel
Copy link

Every now and then when playing in editor, if I play two sessions back to back (stop playback, make a quick change, then play again) I get the following error:

ArgumentException: An item with the same key has already been added. Key: mockPlayer
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <17d9ce77f27a4bd2afb5ba32c9bea976>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <17d9ce77f27a4bd2afb5ba32c9bea976>:0)
GameManager.AddPlayer (Playroom.PlayroomKit+Player player) (at Assets/GameManager.cs:57)
Playroom.PlayroomKit.OnPlayerJoin (System.Action`1[T] onPlayerJoinCallback) (at Assets/PlayroomKit/PlayroomKit.cs:160)
GameManager+<>c.<Awake>b__7_0 () (at Assets/GameManager.cs:37)
Playroom.PlayroomKit.InsertCoin (System.Action callback, Playroom.PlayroomKit+InitOptions options) (at Assets/PlayroomKit/PlayroomKit.cs:75)
GameManager.Awake () (at Assets/GameManager.cs:35)
@SaadBazaz
Copy link
Collaborator

@mrphilipjoel You may want to try the latest version of PlayroomKit for Unity, this issue may have been solved there.
Closing this issue. Feel free to message if it reappears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants