diff --git a/Source/Runtime/Stubs/UdonProductStub.cs b/Source/Runtime/Stubs/UdonProductStub.cs index 5a2fd57..e451f97 100644 --- a/Source/Runtime/Stubs/UdonProductStub.cs +++ b/Source/Runtime/Stubs/UdonProductStub.cs @@ -35,6 +35,17 @@ public Task Delete() throw new NotImplementedException(); } + public Task Purchase( + string variantID = null, + int totalPrice = 0, + int quantity = -1, + Action onPurchaseSuccess = null, + Action onPurchaseError = null, + bool localInstance = false) + { + throw new NotImplementedException(); + } + public Task Purchase( string variantID = null, int totalPrice = 0, diff --git a/Source/Runtime/System/ClientSimUdonManager.cs b/Source/Runtime/System/ClientSimUdonManager.cs index 21f12a3..5a1a5d9 100644 --- a/Source/Runtime/System/ClientSimUdonManager.cs +++ b/Source/Runtime/System/ClientSimUdonManager.cs @@ -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)); } @@ -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)); } @@ -172,4 +172,4 @@ public void RemoveUdonBehaviour(UdonBehaviour udonBehaviour) #endregion } -} \ No newline at end of file +}