Skip to content

Commit 49657aa

Browse files
- fix error path enviroment
Co-Authored-By: KhoaNT2802 <72382735+khoaptit280220@users.noreply.github.com>
1 parent 98ae94d commit 49657aa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Editor/IapSettingsEditor.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,14 @@ void GenerateProductImpl()
9393
str +=
9494
$"\n\t\tpublic static UnityEngine.Purchasing.Product GetProduct{CultureInfo.CurrentCulture.TextInfo.ToTitleCase(itemName)}() => IapManager.GetProduct(IapSettings.Instance.IapDataProducts[{i}]);";
9595

96-
str += $"\n\t\tpublic static float PriceConfig{CultureInfo.CurrentCulture.TextInfo.ToTitleCase(itemName)}() => IapSettings.Instance.IapDataProducts[{i}].price;";
96+
str +=
97+
$"\n\t\tpublic static float PriceConfig{CultureInfo.CurrentCulture.TextInfo.ToTitleCase(itemName)}() => IapSettings.Instance.IapDataProducts[{i}].price;";
9798
if (iapDataProducts[i].iapProductType == IapProductType.Subscription)
9899
{
99100
str +=
100101
$"\n\t\tpublic static UnityEngine.Purchasing.SubscriptionInfo GetSubscriptionInfo{CultureInfo.CurrentCulture.TextInfo.ToTitleCase(itemName)}() => IapManager.GetSubscriptionInfo(IapSettings.Instance.IapDataProducts[{i}]);";
101102
}
103+
102104
str += "\n";
103105
}
104106

@@ -158,7 +160,7 @@ void GuiLine(int i_height = 1)
158160

159161
string GetPathInCurrentEnvironent(string fullRelativePath)
160162
{
161-
var upmPath = $"Packages/com.wolf-package.in-app-purchasing/{fullRelativePath}";
163+
var upmPath = $"Packages/com.wolf-org.in-app-purchasing/{fullRelativePath}";
162164
var normalPath = $"Assets/in-app-purchasing-unity/{fullRelativePath}";
163165
return !File.Exists(Path.GetFullPath(upmPath)) ? normalPath : upmPath;
164166
}

0 commit comments

Comments
 (0)