update: 更新 IAP 配置文件的导入机制

feature/item_system
胡宇飞 2024-01-30 14:24:32 +08:00
parent a009a220e4
commit 2845fc28a2
1 changed files with 7 additions and 1 deletions

View File

@ -736,8 +736,14 @@ namespace Guru.Editor
nn.FindProperty($"Products.Array.data[{i}].AppStoreProductId").stringValue = arr[2];
nn.FindProperty($"Products.Array.data[{i}].Price").doubleValue = double.Parse(arr[3]);
nn.FindProperty($"Products.Array.data[{i}].Type").enumValueIndex = int.Parse(arr[4]);
nn.FindProperty($"Products.Array.data[{i}].IsFree").boolValue = false;
nn.FindProperty($"Products.Array.data[{i}].Category").stringValue = "Store";
nn.FindProperty($"Products.Array.data[{i}].IsFree").boolValue = false;
//----- Extends Columes ------
if (arr.Length > 5)
nn.FindProperty($"Products.Array.data[{i}].Category").stringValue = arr[5];
if (arr.Length > 6)
nn.FindProperty($"Products.Array.data[{i}].IsFree").boolValue = arr[6].ToLower() == "1" || arr[6].ToLower() == "true";
}
}
}