File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,9 @@ private void Prepare_IAP_Products()
173173
174174 void ConsumeControl ( )
175175 {
176+ if ( ! HMSIAPKitSettings . Instance . Settings . GetBool ( HMSIAPKitSettings . ConsumptionOwnedItemsOnInitialize ) )
177+ return ;
178+
176179 RestoreOwnedPurchases ( ( ownedPurchaseResult ) =>
177180 {
178181 Debug . Log ( $ "[{ Tag } ]: Success on Prepare_IAP_Products") ;
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ public class HMSIAPKitSettings : HMSEditorSingleton<HMSIAPKitSettings>
1111 {
1212 private const string SettingsFilename = "HMSIAPKitSettings" ;
1313 public const string InitializeOnStart = "InitializeOnStart" ;
14+ public const string ConsumptionOwnedItemsOnInitialize = "ConsumptionOwnedItemsOnInitialize" ;
1415 private SettingsScriptableObject loadedSettings ;
1516
1617 private HMSSettings _settings ;
You can’t perform that action at this time.
0 commit comments