Closed momintlh closed 11 months ago
https://github.com/asadm/playroom-unity/blob/Mock-API/Assets/Scripts/PlayroomKit.cs#L121C53-L121C64 Save "testPlayer5" as a global private string in PlayroomKit.
i.e.
private static string testPlayerId = "testPlayer5";
And then reuse it wherever it exists.
Rest looks good. Great job!
https://github.com/asadm/playroom-unity/blob/Mock-API/Assets/Scripts/PlayroomKit.cs#L144 Override isStreamMode.
If Mock Mode, isStreamMode should return true if, in insertCoin, streamMode=true was passed. Else false.
We'll explore a better way to tell the user that they are in Mock Mode, in another PR. Merging for now. gg
Breaking change
This PR brings a change in our API, where we now can call
instead of
Which makes the API cleaner, more scalable, manageable and easier to read.
Resolves #1