Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Source/Runtime/Stubs/UdonProductStub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ public Task<bool> Delete()
throw new NotImplementedException();
}

public Task<IProduct[]> Purchase(
string variantID = null,
int totalPrice = 0,
int quantity = -1,
Action onPurchaseSuccess = null,
Action<string> onPurchaseError = null,
bool localInstance = false)
{
throw new NotImplementedException();
}

public Task<IProduct[]> Purchase(
string variantID = null,
int totalPrice = 0,
Expand Down
6 changes: 3 additions & 3 deletions Source/Runtime/System/ClientSimUdonManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public IEnumerator OnClientSimReady()
private void OnPlayerJoined(ClientSimOnPlayerJoinedEvent joinEvent)
{
_udonEventSender.RunEvent(UdonManager.UDON_EVENT_ONINPUTMETHODCHANGED, ("inputMethod", VRCInputMethod.Keyboard));
_udonEventSender.RunEvent(UdonManager.UDON_EVENT_ONLANGUAGECHANGED, ("language", ClientSimSettings.Instance.currentLanguage));
_udonEventSender.RunEvent("_onLanguageChanged", ("language", ClientSimSettings.Instance.currentLanguage));
_udonEventSender.RunEvent("_onPlayerJoined", ("player", joinEvent.player));
}

Expand All @@ -151,7 +151,7 @@ private void OnScreenUpdate(ClientSimScreenUpdateEvent screenUpdateEvent)

private void OnVRCPlusMassGift(ClientSimOnVRCPlusMassGift giftEvent)
{
_udonEventSender.RunEvent(UdonManager.UDON_EVENT_ONVRCPLUSMASSGIFT,
_udonEventSender.RunEvent("_onVRCPlusMassGift",
("gifter", giftEvent.gifter),
("numGifts", giftEvent.numGifts));
}
Expand All @@ -172,4 +172,4 @@ public void RemoveUdonBehaviour(UdonBehaviour udonBehaviour)

#endregion
}
}
}
Loading