update: 更新 IAP 配置文件的导入机制
							parent
							
								
									a009a220e4
								
							
						
					
					
						commit
						2845fc28a2
					
				| 
						 | 
					@ -736,8 +736,14 @@ namespace Guru.Editor
 | 
				
			||||||
                        nn.FindProperty($"Products.Array.data[{i}].AppStoreProductId").stringValue = arr[2];
 | 
					                        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}].Price").doubleValue = double.Parse(arr[3]);
 | 
				
			||||||
                        nn.FindProperty($"Products.Array.data[{i}].Type").enumValueIndex = int.Parse(arr[4]);
 | 
					                        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}].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";
 | 
				
			||||||
                    } 
 | 
					                    } 
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue