Browse Source

bug

master
azazaz123456 5 days ago
parent
commit
4121faf0b3
4 changed files with 15 additions and 11 deletions
  1. +0
    -1
      Assets/Scenes/SampleScene.unity
  2. +3
    -1
      Assets/Scripts/Buy/IAPManager.cs
  3. +4
    -1
      ProjectSettings/EditorBuildSettings.asset
  4. +8
    -8
      ProjectSettings/ProjectSettings.asset

+ 0
- 1
Assets/Scenes/SampleScene.unity View File

@@ -679,7 +679,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 79d7e0668146c3543b375cc7b2cad8aa, type: 3}
m_Name:
m_EditorClassIdentifier:
username:
appleUserId:
isYouke: 0
--- !u!4 &1533039899


+ 3
- 1
Assets/Scripts/Buy/IAPManager.cs View File

@@ -1,4 +1,5 @@
using System;
using Unity.Services.Core;
using UnityEngine;
using UnityEngine.Purchasing;
using UnityEngine.Purchasing.Extension;
@@ -27,8 +28,9 @@ public class IAPManager : MonoBehaviour, IDetailedStoreListener
}
}

void Start()
async void Start()
{
await UnityServices.InitializeAsync(); // 初始化 UGS
var builder = ConfigurationBuilder.Instance(StandardPurchasingModule.Instance());
builder.AddProduct(subscriptionId, ProductType.Subscription);



+ 4
- 1
ProjectSettings/EditorBuildSettings.asset View File

@@ -4,5 +4,8 @@
EditorBuildSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Scenes: []
m_Scenes:
- enabled: 1
path: Assets/Scenes/SampleScene.unity
guid: 9fc0d4010bbf28b4594072e72b8655ab
m_configObjects: {}

+ 8
- 8
ProjectSettings/ProjectSettings.asset View File

@@ -12,8 +12,8 @@ PlayerSettings:
targetDevice: 2
useOnDemandResources: 0
accelerometerFrequency: 60
companyName: DefaultCompany
productName: QuWen
companyName: sange
productName: MosquitoKiller-Outdoor
defaultCursor: {fileID: 0}
cursorHotspot: {x: 0, y: 0}
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
@@ -58,8 +58,8 @@ PlayerSettings:
iosAllowHTTPDownload: 1
allowedAutorotateToPortrait: 1
allowedAutorotateToPortraitUpsideDown: 1
allowedAutorotateToLandscapeRight: 1
allowedAutorotateToLandscapeLeft: 1
allowedAutorotateToLandscapeRight: 0
allowedAutorotateToLandscapeLeft: 0
useOSAutorotation: 1
use32BitDisplayBuffer: 1
preserveFramebufferAlpha: 0
@@ -134,7 +134,7 @@ PlayerSettings:
16:10: 1
16:9: 1
Others: 1
bundleVersion: 0.1
bundleVersion: 1.0
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0
@@ -155,12 +155,12 @@ PlayerSettings:
androidSupportedAspectRatio: 1
androidMaxAspectRatio: 2.1
applicationIdentifier:
iPhone: com.DefaultCompany.QuWen
iPhone: com.sange.quwen
buildNumber:
Standalone: 0
iPhone: 0
tvOS: 0
overrideDefaultApplicationIdentifier: 0
overrideDefaultApplicationIdentifier: 1
AndroidBundleVersionCode: 1
AndroidMinSdkVersion: 22
AndroidTargetSdkVersion: 0
@@ -913,7 +913,7 @@ PlayerSettings:
luminVersion:
m_VersionCode: 1
m_VersionName:
apiCompatibilityLevel: 6
apiCompatibilityLevel: 3
activeInputHandler: 0
windowsGamepadBackendHint: 0
cloudProjectId:


Loading…
Cancel
Save