commit 3363b58c17061dfbed813b5a06cd3465041f9978 Author: 玉峰 Date: Sat Aug 30 12:15:48 2025 +0800 Kwai广告 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aff93d9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +/.idea +/Packages +/Temp +/Library +/Logs +/obj +/*.csproj +/*.sln +/*.user +/sds_BackUpThisFolder_ButDontShipItWithYourGame +/sdss_BackUpThisFolder_ButDontShipItWithYourGame +/Jjhda_BackUpThisFolder_ButDontShipItWithYourGame diff --git a/Assets/Plugins.meta b/Assets/Plugins.meta new file mode 100644 index 0000000..27c246a --- /dev/null +++ b/Assets/Plugins.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6646a893ff2303c408b296b6399e6127 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/Android.meta b/Assets/Plugins/Android.meta new file mode 100644 index 0000000..733d8e3 --- /dev/null +++ b/Assets/Plugins/Android.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b068b5e0342a943b79a33139d35f69b1 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/Android/kwai_adApi_release_v1.2.15_202409020855.aar b/Assets/Plugins/Android/kwai_adApi_release_v1.2.15_202409020855.aar new file mode 100644 index 0000000..40992a5 Binary files /dev/null and b/Assets/Plugins/Android/kwai_adApi_release_v1.2.15_202409020855.aar differ diff --git a/Assets/Plugins/Android/kwai_adApi_release_v1.2.15_202409020855.aar.meta b/Assets/Plugins/Android/kwai_adApi_release_v1.2.15_202409020855.aar.meta new file mode 100644 index 0000000..5a63936 --- /dev/null +++ b/Assets/Plugins/Android/kwai_adApi_release_v1.2.15_202409020855.aar.meta @@ -0,0 +1,32 @@ +fileFormatVersion: 2 +guid: aa74a979cb33d4d16afb0e58ae8b887d +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Android: Android + second: + enabled: 1 + settings: {} + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/Android/kwai_adImpl_release_v1.2.15_202409020856.aar b/Assets/Plugins/Android/kwai_adImpl_release_v1.2.15_202409020856.aar new file mode 100644 index 0000000..511360e Binary files /dev/null and b/Assets/Plugins/Android/kwai_adImpl_release_v1.2.15_202409020856.aar differ diff --git a/Assets/Plugins/Android/kwai_adImpl_release_v1.2.15_202409020856.aar.meta b/Assets/Plugins/Android/kwai_adImpl_release_v1.2.15_202409020856.aar.meta new file mode 100644 index 0000000..bc24425 --- /dev/null +++ b/Assets/Plugins/Android/kwai_adImpl_release_v1.2.15_202409020856.aar.meta @@ -0,0 +1,32 @@ +fileFormatVersion: 2 +guid: 88b1fa4bca95147a6a93a6008aad62da +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Android: Android + second: + enabled: 1 + settings: {} + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes.meta b/Assets/Scenes.meta new file mode 100644 index 0000000..6c123f9 --- /dev/null +++ b/Assets/Scenes.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ac2b3539b90604547837f97aa65bc4f0 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/GameScene.unity b/Assets/Scenes/GameScene.unity new file mode 100644 index 0000000..258a848 --- /dev/null +++ b/Assets/Scenes/GameScene.unity @@ -0,0 +1,254 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 3 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 12 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 0 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 0 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 500 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 2 + m_PVRDenoiserTypeDirect: 0 + m_PVRDenoiserTypeIndirect: 0 + m_PVRDenoiserTypeAO: 0 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 0 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 0} + m_LightingSettings: {fileID: 0} +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &519420028 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 519420032} + - component: {fileID: 519420031} + - component: {fileID: 519420029} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &519420029 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 519420028} + m_Enabled: 1 +--- !u!20 &519420031 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 519420028} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 1 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 0 + m_HDR: 1 + m_AllowMSAA: 0 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 0 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &519420032 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 519420028} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &2137923633 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2137923634} + - component: {fileID: 2137923635} + m_Layer: 0 + m_Name: '[SDKManager]' + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &2137923634 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2137923633} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &2137923635 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2137923633} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 6d54b264ce860144d940f61f7a0092c2, type: 3} + m_Name: + m_EditorClassIdentifier: + IsMoreAdsBidding: 0 diff --git a/Assets/Scenes/GameScene.unity.meta b/Assets/Scenes/GameScene.unity.meta new file mode 100644 index 0000000..c1e3c88 --- /dev/null +++ b/Assets/Scenes/GameScene.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 2cda990e2423bbf4892e6590ba056729 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Script.meta b/Assets/Script.meta new file mode 100644 index 0000000..13fd3e9 --- /dev/null +++ b/Assets/Script.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: cd02d54816dc59f42ac4cb4e7ccedea8 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Script/SDKManager.meta b/Assets/Script/SDKManager.meta new file mode 100644 index 0000000..948b51a --- /dev/null +++ b/Assets/Script/SDKManager.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8c27f7b6d4c7b1c4885674e6e47a31a8 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Script/SDKManager/AdsSDKManager.meta b/Assets/Script/SDKManager/AdsSDKManager.meta new file mode 100644 index 0000000..33974d5 --- /dev/null +++ b/Assets/Script/SDKManager/AdsSDKManager.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a1dbfc1b890a2094b90184494b6dd5de +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Script/SDKManager/AdsSDKManager/AdsSDKManager.cs b/Assets/Script/SDKManager/AdsSDKManager/AdsSDKManager.cs new file mode 100644 index 0000000..5937a12 --- /dev/null +++ b/Assets/Script/SDKManager/AdsSDKManager/AdsSDKManager.cs @@ -0,0 +1,49 @@ +using System; +using UnityEngine; + +public class AdsSDKManager : MonoBehaviour +{ + public static AdsSDKManager instance; + + /// + /// 看完广告的回调 + /// + private Action AdRewardCallback; + + /// + /// 广告竞价开关:激励、插屏、全屏Native广告竞价 + /// + public bool IsMoreAdsBidding = false; + + private void Awake() + { + instance = this; + + InitSDK(); + } + + + private void InitSDK() + { + KwaiAdsManager.Init(); + } + + + /// + /// 展示激励广告 + /// + /// + private void ShowRewardAd(Action callback) + { + AdRewardCallback = callback; + } + + /// + /// 广告看完回调 + /// + public void OnRewardAdCallback(double price) + { + AdRewardCallback?.Invoke(price); + AdRewardCallback = null; + } +} diff --git a/Assets/Script/SDKManager/AdsSDKManager/AdsSDKManager.cs.meta b/Assets/Script/SDKManager/AdsSDKManager/AdsSDKManager.cs.meta new file mode 100644 index 0000000..f7cc78e --- /dev/null +++ b/Assets/Script/SDKManager/AdsSDKManager/AdsSDKManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6d54b264ce860144d940f61f7a0092c2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager.meta b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager.meta new file mode 100644 index 0000000..fcd2e63 --- /dev/null +++ b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b0a80a58adfc8ed44a051dd9180313b4 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/InitResultCallbackImpl.cs b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/InitResultCallbackImpl.cs new file mode 100644 index 0000000..f65606a --- /dev/null +++ b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/InitResultCallbackImpl.cs @@ -0,0 +1,16 @@ +using UnityEngine; + +public class InitResultCallbackImpl : KwaiAds.Scripts.Api.InitResultCallback +{ + public void OnSuccess() + { + Debug.Log("快手广告初始化成功"); + KwaiAdsManager.LoadRewardAd(); + KwaiAdsManager.LoadInterstitialAd(); + } + + public void OnFail(int code, string msg) + { + Debug.LogFormat($"快手广告初始化失败 code is {code}, msg:{msg}"); + } +} \ No newline at end of file diff --git a/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/InitResultCallbackImpl.cs.meta b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/InitResultCallbackImpl.cs.meta new file mode 100644 index 0000000..7f95473 --- /dev/null +++ b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/InitResultCallbackImpl.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 297acd22f0724fb68940e9ed07e99679 +timeCreated: 1756523069 \ No newline at end of file diff --git a/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/InterstitialAdListener.cs b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/InterstitialAdListener.cs new file mode 100644 index 0000000..fa5ea10 --- /dev/null +++ b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/InterstitialAdListener.cs @@ -0,0 +1,31 @@ +using KwaiAds.Scripts.Api.Interstitial; +using UnityEngine; + +public class InterstitialAdListener : IInterstitialAdListener +{ + public void OnAdClick() + { + // 插页广告调整转换页 | Interstitial ad agjust conversion page + } + + public void OnAdClose() + { + // 插页广告关闭 | Interstitial ad close + } + + public void OnAdPlayComplete() + { + // 插页视频播放完成 | Interstitial video play complete + KwaiAdsManager.OnInterstitialCallback(); + } + + public void OnAdShow() + { + // 插页视频曝光 | Interstitial video show + } + + public void OnAdShowFailed(int code, string msg) + { + Debug.LogError($"RewardAdListener#OnAdShowFailed , code:{code}, msg:{msg}"); + } +} \ No newline at end of file diff --git a/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/InterstitialAdListener.cs.meta b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/InterstitialAdListener.cs.meta new file mode 100644 index 0000000..2c64e0c --- /dev/null +++ b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/InterstitialAdListener.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 8a26832a3e5e45628a7fe6146582fd5d +timeCreated: 1756526359 \ No newline at end of file diff --git a/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/InterstitialAdLoadListener.cs b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/InterstitialAdLoadListener.cs new file mode 100644 index 0000000..bdba388 --- /dev/null +++ b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/InterstitialAdLoadListener.cs @@ -0,0 +1,36 @@ +using System.Globalization; +using KwaiAds.Scripts.Api.Interstitial; +using UnityEngine; + +public class InterstitialAdLoadListener : IInterstitialAdLoadListener +{ + private const int maxLoadCount = 3; + private int currentLoadCount = 0; + + public void OnAdLoadFailed(string trackId, int code, string msg) + { + // 受国内环境限制,国内无法请求到海外广告,需要加白。可以将trackId反馈给对接同学进行加白。| Due to the limitations of the domestic environment, it is not possible to request overseas advertisements in China, and it is necessary to add white. You can feedback the trackId to the contact peroson to add white. + Debug.LogFormat($"InterstitialAdLoadListener#OnAdLoadFailed , trackId:{trackId}, code:{code}, msg:{msg}"); + currentLoadCount++; + if (currentLoadCount < maxLoadCount) + { + KwaiAdsManager.LoadRewardAd(); + } + } + + public void OnAdLoadStart(string trackId) + { + Debug.Log($"InterstitialAdLoadListener#OnAdLoadStart , trackId:{trackId}"); + } + + public void OnAdLoadSuccess(string trackId, string price) + { + // price 单位是$(美元,ecpm) | price in $ (dollars, ecpm) + Debug.Log($"InterstitialAdLoadListener#OnAdLoadSuccess , trackId:{trackId}, price:{price}"); + if (double.TryParse(price, NumberStyles.Float, CultureInfo.InvariantCulture, out double result)) + { + KwaiAdsManager.interstitiaAdRevenue = result; + Debug.Log($"InterstitialAdLoadListener#OnAdLoadSuccess , trackId:{trackId}, price:{price}"); + } + } +} \ No newline at end of file diff --git a/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/InterstitialAdLoadListener.cs.meta b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/InterstitialAdLoadListener.cs.meta new file mode 100644 index 0000000..4d48471 --- /dev/null +++ b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/InterstitialAdLoadListener.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 3197cbfdc6ca40bfaa8f91562eb8e9e5 +timeCreated: 1756526060 \ No newline at end of file diff --git a/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/KwaiAdsManager.cs b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/KwaiAdsManager.cs new file mode 100644 index 0000000..d6a83e3 --- /dev/null +++ b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/KwaiAdsManager.cs @@ -0,0 +1,129 @@ +using System.Collections; +using System.Collections.Generic; +using KwaiAds.Scripts.Api.Interstitial; +using KwaiAds.Scripts.Api.Reward; +using UnityEngine; + +public static class KwaiAdsManager +{ + //目前都是测试id + private const string appId = "899999"; + private const string token = "EaCw0AipSYyvf3E7"; + private const string rewardAdUnitId = "8999996001"; + private const string interstitialAdUnitId = "8999996002"; + + /// + /// 目前是千倍广告价值 + /// + public static double rewardAdRevenue = 0; + /// + /// 插屏奖励价值 如果有竞价功能可能会用到 + /// + public static double interstitiaAdRevenue = 0; + + private static IRewardAdController rewardAdController; + private static IInterstitialAdController interstitialAdController; + + public static void Init() + { + bool debug = true; // Whether in debug mode. Plsease set to false when in release build. + var kwaiAdConfig = new KwaiAds.Scripts.Api.KwaiAdConfig.Builder() + .SetAppId(appId) + .SetToken(token) + .SetAppName("App Name") // Optional + .SetDebugLog(debug) // Optional + .Build(); + + KwaiAds.Scripts.Api.KwaiAdsSdk.Initialize(kwaiAdConfig, new InitResultCallbackImpl()); + } + + #region 激励广告 + + /// + /// 加载激励广告 + /// + public static void LoadRewardAd() + { + if (rewardAdController != null) + { + rewardAdController.Destroy(); + rewardAdController = null; + rewardAdRevenue = 0; + } + + rewardAdController = KwaiAds.Scripts.Api.KwaiAdsSdk.SDK.getRewardAdController(); + KwaiRewardAdRequest kwaiRewardAdRequest = new KwaiRewardAdRequest(rewardAdUnitId); + rewardAdController.Load(kwaiRewardAdRequest, new RewardAdListener(), new RewardAdLoadListener()); + } + + /// + /// 展示激励广告 + /// + public static void ShowRewardAd() + { + if (rewardAdController != null) + { + rewardAdController.Show(); + } + else + { + LoadRewardAd(); + } + } + + /// + /// 广告播放完成 获得奖励 + /// + public static void OnRewardAdCallback() + { + AdsSDKManager.instance.OnRewardAdCallback(rewardAdRevenue); + LoadRewardAd(); + } + + #endregion + + #region 插屏 + + public static void LoadInterstitialAd() + { + if (interstitialAdController != null) + { + interstitialAdController.Destroy(); + interstitialAdController = null; + interstitiaAdRevenue = 0; + } + + interstitialAdController = KwaiAds.Scripts.Api.KwaiAdsSdk.SDK.getInterstitialAdController(); + KwaiInterstitialAdRequest kwaiInterstitialAdRequest = new KwaiInterstitialAdRequest(interstitialAdUnitId); + interstitialAdController.Load(kwaiInterstitialAdRequest, new InterstitialAdListener(), new InterstitialAdLoadListener()); + } + + public static void ShowInterstitialAd() + { + if (interstitialAdController != null) + { + interstitialAdController.Show(); + } + else + { + LoadInterstitialAd(); + } + } + + /// + /// 广告播放完成 获得奖励 + /// + public static void OnInterstitialCallback() + { + if (AdsSDKManager.instance.IsMoreAdsBidding) + { + AdsSDKManager.instance.OnRewardAdCallback(interstitiaAdRevenue); + } + + LoadInterstitialAd(); + } + + #endregion + +} + diff --git a/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/KwaiAdsManager.cs.meta b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/KwaiAdsManager.cs.meta new file mode 100644 index 0000000..2526834 --- /dev/null +++ b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/KwaiAdsManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d13d3a000acd1e64bb9f12c354d6f278 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/RewardAdListener.cs b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/RewardAdListener.cs new file mode 100644 index 0000000..149986e --- /dev/null +++ b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/RewardAdListener.cs @@ -0,0 +1,37 @@ +using KwaiAds.Scripts.Api.Reward; +using UnityEngine; + +public class RewardAdListener : IRewardAdListener +{ + public void OnAdClick() + { + // 激励广告调整转换页 | Reward ad adjustment conversion page + } + + public void OnAdClose() + { + // 激励广告关闭 | Reward ad close + KwaiAdsManager.LoadRewardAd(); + } + + public void OnAdPlayComplete() + { + // 激励视频播放完成 | Reward video play complete + } + + public void OnAdShow() + { + // 激励视频曝光 | Reward video show + } + + public void OnAdShowFailed(int code, string msg) + { + Debug.LogFormat($"RewardAdListener#OnAdShowFailed , code:{code}, msg:{msg}"); + } + + public void OnRewardEarned() + { + // 获取到激励 | Reward earned + KwaiAdsManager.OnRewardAdCallback(); + } +} \ No newline at end of file diff --git a/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/RewardAdListener.cs.meta b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/RewardAdListener.cs.meta new file mode 100644 index 0000000..04d4402 --- /dev/null +++ b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/RewardAdListener.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: eb646767a47246de9651276f8c02b182 +timeCreated: 1756523109 \ No newline at end of file diff --git a/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/RewardAdLoadListener.cs b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/RewardAdLoadListener.cs new file mode 100644 index 0000000..105bc5c --- /dev/null +++ b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/RewardAdLoadListener.cs @@ -0,0 +1,35 @@ +using System.Globalization; +using KwaiAds.Scripts.Api.Reward; +using UnityEngine; + +public class RewardAdLoadListener : IRewardAdLoadListener +{ + private const int maxLoadCount = 3; + private int currentLoadCount = 0; + + public void OnAdLoadFailed(string trackId, int code, string msg) + { + // 受国内环境限制,国内无法请求到海外广告,需要加白。可以将trackId反馈给对接同学进行加白。| Due to the limitations of the domestic environment, it is not possible to request overseas advertisements in China, and it is necessary to add white. You can feedback the trackId to the contact peroson to add white. + Debug.LogFormat($"RewardAdLoadListener#OnAdLoadFailed , trackId:{trackId}, code:{code}, msg:{msg}"); + currentLoadCount++; + if (currentLoadCount < maxLoadCount) + { + KwaiAdsManager.LoadRewardAd(); + } + } + + public void OnAdLoadStart(string trackId) + { + Debug.Log($"RewardAdLoadListener#OnAdLoadStart , trackId:{trackId}"); + } + + public void OnAdLoadSuccess(string trackId, string price) + { + // price 单位是$(美元,ecpm) | price in $ (dollars, ecpm) + if (double.TryParse(price, NumberStyles.Float, CultureInfo.InvariantCulture, out double result)) + { + KwaiAdsManager.rewardAdRevenue = result; + Debug.Log($"RewardAdLoadListener#OnAdLoadSuccess , trackId:{trackId}, price:{price}"); + } + } +} \ No newline at end of file diff --git a/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/RewardAdLoadListener.cs.meta b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/RewardAdLoadListener.cs.meta new file mode 100644 index 0000000..4cc1845 --- /dev/null +++ b/Assets/Script/SDKManager/AdsSDKManager/KwaiAdsManager/RewardAdLoadListener.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: a0992279c4964e378024c3306ff8ace7 +timeCreated: 1756523090 \ No newline at end of file diff --git a/Assets/rd3.meta b/Assets/rd3.meta new file mode 100644 index 0000000..b82ffc0 --- /dev/null +++ b/Assets/rd3.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3a60b109e679ff348987b5f3ddcbb7ae +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK.meta b/Assets/rd3/AdsSDK.meta new file mode 100644 index 0000000..0692c1c --- /dev/null +++ b/Assets/rd3/AdsSDK.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6ee630ce237458044be6ec0977068a88 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds.meta b/Assets/rd3/AdsSDK/KwaiAds.meta new file mode 100644 index 0000000..237c918 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 21b0e881364cd4d0da806044ea47768c +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts.meta new file mode 100644 index 0000000..e67398d --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5b7831b042a714ecbbed624079aee268 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api.meta new file mode 100644 index 0000000..da493ab --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6cfda4e373bf74dc188f05e9d13e5686 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Constants.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Constants.cs new file mode 100644 index 0000000..fceea9e --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Constants.cs @@ -0,0 +1,17 @@ +namespace KwaiAds.Scripts.Api +{ + public static class Constants + { + public static class Request + { + public const string BID_FLOOR_PRICE = "bidfloor"; + public const string BID_FLOOR_CURRENCY = "bidfloorcur"; + public const string MEDIATION_TYPE = "knMediationType"; + } + + public static class Currency + { + public static string USD = "USD"; + } + } +} diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Constants.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Constants.cs.meta new file mode 100644 index 0000000..d8c5cb6 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Constants.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d588296f2ea8e4ad2b0d8fe1352f6601 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/InitResultCallback.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/InitResultCallback.cs new file mode 100644 index 0000000..e06aefb --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/InitResultCallback.cs @@ -0,0 +1,10 @@ +namespace KwaiAds.Scripts.Api +{ + public interface InitResultCallback + { + // init success. + void OnSuccess(); + // init fail. + void OnFail(int code, string msg); + } +} \ No newline at end of file diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/InitResultCallback.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/InitResultCallback.cs.meta new file mode 100644 index 0000000..9cd9760 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/InitResultCallback.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8be85fafbbdb749d19df315210dc5f00 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial.meta new file mode 100644 index 0000000..7b9b587 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c15a0f83cafbc445d8b2d6f33b4ddc39 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/IInterstitialAdController.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/IInterstitialAdController.cs new file mode 100644 index 0000000..49b8ddb --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/IInterstitialAdController.cs @@ -0,0 +1,10 @@ +using KwaiAds.Scripts.Common; + +namespace KwaiAds.Scripts.Api.Interstitial +{ + public interface IInterstitialAdController : IKwaiAdController + + { + bool Load(KwaiInterstitialAdRequest request, IInterstitialAdListener adListener, IInterstitialAdLoadListener AdLoadListener); + } +} \ No newline at end of file diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/IInterstitialAdController.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/IInterstitialAdController.cs.meta new file mode 100644 index 0000000..75e45c4 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/IInterstitialAdController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fe02ba500a25a4d7d8908d374918ff77 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/IInterstitialAdListener.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/IInterstitialAdListener.cs new file mode 100644 index 0000000..f9c252d --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/IInterstitialAdListener.cs @@ -0,0 +1,7 @@ +using KwaiAds.Scripts.Common; +namespace KwaiAds.Scripts.Api.Interstitial +{ + public interface IInterstitialAdListener : IAdListener + { + } +} diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/IInterstitialAdListener.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/IInterstitialAdListener.cs.meta new file mode 100644 index 0000000..ced51c6 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/IInterstitialAdListener.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 918faaa178894484c9a6e049087a19a9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/IInterstitialAdLoadListener.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/IInterstitialAdLoadListener.cs new file mode 100644 index 0000000..c014b00 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/IInterstitialAdLoadListener.cs @@ -0,0 +1,7 @@ +using KwaiAds.Scripts.Common; +namespace KwaiAds.Scripts.Api.Interstitial +{ + public interface IInterstitialAdLoadListener : IRwardAdListener + { + } +} \ No newline at end of file diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/IInterstitialAdLoadListener.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/IInterstitialAdLoadListener.cs.meta new file mode 100644 index 0000000..da2d843 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/IInterstitialAdLoadListener.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d72b6a69cd6d34540ac09553f5b5ac8e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/KwaiInterstitialAdRequest.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/KwaiInterstitialAdRequest.cs new file mode 100644 index 0000000..8af0644 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/KwaiInterstitialAdRequest.cs @@ -0,0 +1,9 @@ +namespace KwaiAds.Scripts.Api.Interstitial +{ + public class KwaiInterstitialAdRequest : KwaiRequest + { + public KwaiInterstitialAdRequest(string tagId) : base(tagId) + { + } + } +} diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/KwaiInterstitialAdRequest.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/KwaiInterstitialAdRequest.cs.meta new file mode 100644 index 0000000..7e62f92 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Interstitial/KwaiInterstitialAdRequest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6c4a573a0bd164e71b48712fce52f831 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/KwaiAdConfig.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/KwaiAdConfig.cs new file mode 100644 index 0000000..d642b35 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/KwaiAdConfig.cs @@ -0,0 +1,90 @@ +namespace KwaiAds.Scripts.Api +{ + public class KwaiAdConfig + { + // 必填 + internal string AppId { get; } + + // 必填 + internal string Token { get; } + + // 选填 + internal string AppName { get; } + + // 选填 + internal string AppDomain { get; } + + // 选填 + internal string AppStoreUrl { get; } + + // 选填, 打印debug日志使用,注意上线前需要关闭 + internal bool DebugLog { get; } + + private KwaiAdConfig(KwaiAdConfig.Builder builder) + { + AppId = builder.AppId; + Token = builder.Token; + AppName = builder.AppName; + AppDomain = builder.AppDomain; + AppStoreUrl = builder.AppStoreUrl; + DebugLog = builder.DebugLog; + } + + public class Builder + { + internal string AppId; + + internal string Token; + + internal string AppName; + + internal string AppDomain; + + internal string AppStoreUrl; + + internal bool DebugLog; + + public Builder SetAppId(string appid) + { + this.AppId = appid; + return this; + } + + public Builder SetToken(string token) + { + this.Token = token; + return this; + } + + public Builder SetAppName(string appName) + { + this.AppName = appName; + return this; + } + + public Builder SetAppDomain(string appDomain) + { + this.AppDomain = appDomain; + return this; + } + + public Builder SetAppStoreUrl(string appStoreUrl) + { + this.AppStoreUrl = appStoreUrl; + return this; + } + + public Builder SetDebugLog(bool debugLog) + { + this.DebugLog = debugLog; + return this; + } + + public KwaiAdConfig Build() + { + return new KwaiAdConfig(this); + } + } + } + +} \ No newline at end of file diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/KwaiAdConfig.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/KwaiAdConfig.cs.meta new file mode 100644 index 0000000..dd983fa --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/KwaiAdConfig.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 32b28f3fd33f1428da1cc9988640243b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/KwaiAdsSdk.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/KwaiAdsSdk.cs new file mode 100644 index 0000000..de81462 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/KwaiAdsSdk.cs @@ -0,0 +1,53 @@ +using System; +using KwaiAds.Scripts.Common; + +namespace KwaiAds.Scripts.Api +{ + public static class KwaiAdsSdk + { + private static IClientFactory _clientFactory; + + private static ISDK _sdk; + + internal static ISDK SDK + { + get + { + if (_sdk == null) + { + _sdk = GetClientFactory().BuildSDKClient(); + } + + return _sdk; + } + } + + internal static IClientFactory GetClientFactory() + { + if (_clientFactory != null) + { + return _clientFactory; + } + + _clientFactory = +#if UNITY_ANDROID + new KwaiAds.Scripts.Platforms.Android.AndroidClientFactory(); +#else + null; + throw new PlatformNotSupportedException(); +#endif + return _clientFactory; + } + + /// Starts the Kwai SDK + /// @warning Call this method as early as possible to reduce ad request fail. + /// @param config SDK configuration + /// @param callback Callback for starting the Kwai SDK + /// //// + public static void Initialize(KwaiAdConfig config, InitResultCallback initResultCallback) + { + SDK.Init(config, initResultCallback); + } + } +} + diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/KwaiAdsSdk.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/KwaiAdsSdk.cs.meta new file mode 100644 index 0000000..5560a3f --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/KwaiAdsSdk.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2791cc736a9794f25ab1696f26f5213c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/KwaiRequest.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/KwaiRequest.cs new file mode 100644 index 0000000..e0ae3ce --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/KwaiRequest.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; + +namespace KwaiAds.Scripts.Api +{ + public class KwaiRequest + { + public readonly string TagId; + + public Dictionary ExtParams = new Dictionary(); + + public KwaiRequest(string tagId) + { + this.TagId = tagId ?? throw new ArgumentNullException(nameof(tagId)); + InitExtParams(); + } + + protected void InitExtParams() + { + ExtParams[Constants.Request.BID_FLOOR_PRICE] = "0"; + ExtParams[Constants.Request.BID_FLOOR_CURRENCY] = Constants.Currency.USD; + ExtParams[Constants.Request.MEDIATION_TYPE] = "4"; + } + } +} \ No newline at end of file diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/KwaiRequest.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/KwaiRequest.cs.meta new file mode 100644 index 0000000..6977155 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/KwaiRequest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 61bfe19af80544aba92d1b80944a1be4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward.meta new file mode 100644 index 0000000..08b0b76 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6cd289c41733447869d15ae750e6053b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/IRewardAdController.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/IRewardAdController.cs new file mode 100644 index 0000000..c918384 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/IRewardAdController.cs @@ -0,0 +1,10 @@ +using KwaiAds.Scripts.Common; + +namespace KwaiAds.Scripts.Api.Reward +{ + public interface IRewardAdController : IKwaiAdController + + { + bool Load(KwaiRewardAdRequest request, IRewardAdListener adListener, IRewardAdLoadListener AdLoadListener); + } +} diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/IRewardAdController.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/IRewardAdController.cs.meta new file mode 100644 index 0000000..9e62244 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/IRewardAdController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d5caaf31f542a47f393348c0ae68e02f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/IRewardAdListener.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/IRewardAdListener.cs new file mode 100644 index 0000000..ff744f3 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/IRewardAdListener.cs @@ -0,0 +1,9 @@ +using KwaiAds.Scripts.Common; + +namespace KwaiAds.Scripts.Api.Reward +{ + public interface IRewardAdListener : IAdListener + { + void OnRewardEarned(); + } +} diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/IRewardAdListener.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/IRewardAdListener.cs.meta new file mode 100644 index 0000000..4e41f36 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/IRewardAdListener.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 045ba09dbdc7c466e9be4fc380f2d9bc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/IRewardAdLoadListener.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/IRewardAdLoadListener.cs new file mode 100644 index 0000000..aaad1dd --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/IRewardAdLoadListener.cs @@ -0,0 +1,8 @@ +using KwaiAds.Scripts.Common; + +namespace KwaiAds.Scripts.Api.Reward +{ + public interface IRewardAdLoadListener : IRwardAdListener + { + } +} \ No newline at end of file diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/IRewardAdLoadListener.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/IRewardAdLoadListener.cs.meta new file mode 100644 index 0000000..22e06f4 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/IRewardAdLoadListener.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 13ea58bcd42a84f62bb3135d963cdafc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/KwaiRewardAdRequest.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/KwaiRewardAdRequest.cs new file mode 100644 index 0000000..2b70c25 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/KwaiRewardAdRequest.cs @@ -0,0 +1,9 @@ +namespace KwaiAds.Scripts.Api.Reward +{ + public class KwaiRewardAdRequest : KwaiRequest + { + public KwaiRewardAdRequest(string tagId) : base(tagId) + { + } + } +} \ No newline at end of file diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/KwaiRewardAdRequest.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/KwaiRewardAdRequest.cs.meta new file mode 100644 index 0000000..9dfdb28 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Api/Reward/KwaiRewardAdRequest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dd180b13db2b542d182f2385909233a8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common.meta new file mode 100644 index 0000000..c0b3efb --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a9d21eba105154e56868106703439665 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IAdListener.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IAdListener.cs new file mode 100644 index 0000000..c3ad2d8 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IAdListener.cs @@ -0,0 +1,15 @@ +namespace KwaiAds.Scripts.Common +{ + public interface IAdListener + { + public void OnAdShow(); + + public void OnAdShowFailed(int code, string msg); + + public void OnAdClick(); + + public void OnAdClose(); + + public void OnAdPlayComplete(); + } +} diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IAdListener.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IAdListener.cs.meta new file mode 100644 index 0000000..f921e0b --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IAdListener.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 610a8aa1a88da4205aef22f667f20fb3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IAdLoadListener.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IAdLoadListener.cs new file mode 100644 index 0000000..d65b70f --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IAdLoadListener.cs @@ -0,0 +1,11 @@ +namespace KwaiAds.Scripts.Common +{ + public interface IRwardAdListener + { + void OnAdLoadStart(string trackId); + + void OnAdLoadSuccess(string trackId, string price); + + void OnAdLoadFailed(string trackId, int code, string msg); + } +} diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IAdLoadListener.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IAdLoadListener.cs.meta new file mode 100644 index 0000000..9af6a58 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IAdLoadListener.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a89806e9b67c64489a2a827347537cc3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IClientBidding.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IClientBidding.cs new file mode 100644 index 0000000..747a2f6 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IClientBidding.cs @@ -0,0 +1,9 @@ +namespace KwaiAds.Scripts.Common +{ + public interface IClientBidding + { + void NotifyWin(); + + void NotifyLoss(); + } +} \ No newline at end of file diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IClientBidding.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IClientBidding.cs.meta new file mode 100644 index 0000000..40e9382 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IClientBidding.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6e0c163d17ce64bc8b252335972ee68e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IClientFactory.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IClientFactory.cs new file mode 100644 index 0000000..8ffaeb5 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IClientFactory.cs @@ -0,0 +1,7 @@ +namespace KwaiAds.Scripts.Common +{ + public interface IClientFactory + { + ISDK BuildSDKClient(); + } +} \ No newline at end of file diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IClientFactory.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IClientFactory.cs.meta new file mode 100644 index 0000000..8d89e6a --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IClientFactory.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fdc26de22e37d4230a8e0da39e5c796e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IKwaiAdController.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IKwaiAdController.cs new file mode 100644 index 0000000..7e82a1d --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IKwaiAdController.cs @@ -0,0 +1,16 @@ +using KwaiAds.Scripts.Api; + +namespace KwaiAds.Scripts.Common +{ + public interface IKwaiAdController : IClientBidding + where T : KwaiRequest + where A : IAdListener + where L : IRwardAdListener + { + bool Load(T request, A adListener, L AdLoadListener); + bool IsLoaded(); + bool IsReady(); + void Show(); + void Destroy(); + } +} \ No newline at end of file diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IKwaiAdController.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IKwaiAdController.cs.meta new file mode 100644 index 0000000..025bebf --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/IKwaiAdController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3f46c0951e94f4f8281a9fe8163ada33 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/ISDK.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/ISDK.cs new file mode 100644 index 0000000..8fba528 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/ISDK.cs @@ -0,0 +1,15 @@ +using KwaiAds.Scripts.Api; +using KwaiAds.Scripts.Api.Interstitial; +using KwaiAds.Scripts.Api.Reward; + +namespace KwaiAds.Scripts.Common +{ + public interface ISDK + { + void Init(KwaiAdConfig config, InitResultCallback initResultCallback); + + IRewardAdController getRewardAdController(); + + IInterstitialAdController getInterstitialAdController(); + } +} \ No newline at end of file diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/ISDK.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/ISDK.cs.meta new file mode 100644 index 0000000..25c59c5 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Common/ISDK.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6f06c54ccc95d498888d80a2f23ae03b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform.meta new file mode 100644 index 0000000..f35638a --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c356a83720f804e72bf376a6269fdd49 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android.meta new file mode 100644 index 0000000..a41f6fa --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6f65ac5b34e2e421daefec3aca0c1ee3 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/AndroidClientFactory.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/AndroidClientFactory.cs new file mode 100644 index 0000000..96821ab --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/AndroidClientFactory.cs @@ -0,0 +1,14 @@ +#if UNITY_ANDROID +using KwaiAds.Scripts.Common; + +namespace KwaiAds.Scripts.Platforms.Android +{ + class AndroidClientFactory : IClientFactory + { + public ISDK BuildSDKClient() + { + return new KwaiSdkClient(); + } + } +} +#endif \ No newline at end of file diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/AndroidClientFactory.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/AndroidClientFactory.cs.meta new file mode 100644 index 0000000..31d1ed1 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/AndroidClientFactory.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 275e0a240fbb94bbbaa5b2aef39327fe +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/AndroidPlatformTool.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/AndroidPlatformTool.cs new file mode 100644 index 0000000..1285bfe --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/AndroidPlatformTool.cs @@ -0,0 +1,22 @@ +using System; +using UnityEngine; + +namespace BigoAds.Scripts.Platforms.Android +{ + internal static class AndroidPlatformTool + { + public const string ClassPackage = "com.kwai.network.sdk"; + private const string CurrentActivityMethod = "currentActivity"; + private const string UnityPlayerClassName = "com.unity3d.player.UnityPlayer"; + + public static AndroidJavaObject GetGameActivity() + { + return new AndroidJavaClass(UnityPlayerClassName).GetStatic(CurrentActivityMethod); + } + + public static void CallMethodOnMainThread(Action task) + { + GetGameActivity()?.Call("runOnUiThread", new AndroidJavaRunnable(task)); + } + } +} \ No newline at end of file diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/AndroidPlatformTool.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/AndroidPlatformTool.cs.meta new file mode 100644 index 0000000..837e252 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/AndroidPlatformTool.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2b96b326de04d4efc86c67f33abe4f87 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiAdSDKInit.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiAdSDKInit.cs new file mode 100644 index 0000000..deddfa1 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiAdSDKInit.cs @@ -0,0 +1,164 @@ +#if UNITY_ANDROID +using System; +using BigoAds.Scripts.Platforms.Android; +using KwaiAds.Scripts.Api; +using KwaiAds.Scripts.Common; +using UnityEngine; + +namespace KwaiAds.Scripts.Platforms.Android +{ + public class KwaiAdSDKInit + { + private const string TAG = "[KwaiAdSDK-INIT]"; + private const string SDKClientClassName = AndroidPlatformTool.ClassPackage + ".KwaiAdSDK"; + private const string SDKClientBuilder = AndroidPlatformTool.ClassPackage + ".api.SdkConfig$Builder"; + private const string SDKClientInitCallback = AndroidPlatformTool.ClassPackage + ".api.KwaiInitCallback"; + + private static AndroidJavaClass kwaiAdSdkClass; + private static KwaiAdConfig config; + private static InitResultCallback initCallback; + + private KwaiAdSDKInit(KwaiAdConfig kwaiAdConfig, InitResultCallback initResultCallback) + { + if (kwaiAdConfig == null) + { + throw new ArgumentNullException(nameof(kwaiAdConfig), $"{TAG}: KwaiAdConfig cannot be null."); + } + config = kwaiAdConfig; + initCallback = initResultCallback; + } + + private class KwaiNetworkSingleton + { + private static volatile KwaiAdSDKInit _instance; + private static object syncRoot = new object(); + + public static KwaiAdSDKInit Instance + { + get + { + if (_instance == null) + { + lock (syncRoot) + { + if (_instance == null) + { + throw new InvalidOperationException($"{TAG}: KwaiAdSDK instance has not been initialized."); + } + } + } + return _instance; + } + } + + public static void Initialize(KwaiAdConfig kwaiAdConfig, InitResultCallback initResultCallback) + { + lock (syncRoot) + { + if (_instance == null) + { + _instance = new KwaiAdSDKInit(kwaiAdConfig, initResultCallback); + _instance.InitializeKwaiAdSDK(); + } + } + } + } + + public static void Initialize(KwaiAdConfig kwaiAdConfig, InitResultCallback initResultCallback) + { + KwaiNetworkSingleton.Initialize(kwaiAdConfig, initResultCallback); + } + + public static KwaiAdSDKInit Instance + { + get { return KwaiNetworkSingleton.Instance; } + } + + public AndroidJavaClass GetKwaiAdSDKClass() + { + if (kwaiAdSdkClass == null) + { + Debug.LogError($"{TAG}: KwaiAdSDKClass has not been initialized.."); + } + return kwaiAdSdkClass; + } + + private void InitializeKwaiAdSDK() + { + var kwaiUnityCallback = new KwaiUnityCallback(); + if (Application.platform != RuntimePlatform.Android) + { + Debug.LogError($"{TAG}: Kwai Ad SDK can only be initialized on Android."); + kwaiUnityCallback.onFail(2, "Kwai Ad SDK can only be initialized on Android."); + return; + } + + kwaiAdSdkClass = new AndroidJavaClass(SDKClientClassName); + if (kwaiAdSdkClass == null) + { + Debug.LogError($"{TAG}: Failed to get KwaiAdSDK class."); + kwaiUnityCallback.onFail(3, "Failed to get KwaiAdSDK class."); + return; + } + + var sdkConfigBuilder = new AndroidJavaObject(SDKClientBuilder); + if (sdkConfigBuilder == null) + { + Debug.LogError($"{TAG}: Failed to create SdkConfig builder."); + kwaiUnityCallback.onFail(4, "Failed to create SdkConfig builder."); + return; + } + + + if (config != null) + { + sdkConfigBuilder.Call("appId", config.AppId); + sdkConfigBuilder.Call("token", config.Token); + sdkConfigBuilder.Call("appName", config.AppName); + sdkConfigBuilder.Call("appDomain", config.AppDomain); + sdkConfigBuilder.Call("appStoreUrl", config.AppStoreUrl); + sdkConfigBuilder.Call("setInitCallback", kwaiUnityCallback); + sdkConfigBuilder.Call("debug", config.DebugLog); + } + + AndroidJavaObject currentActivity = AndroidPlatformTool.GetGameActivity(); + if (currentActivity != null) + { + AndroidJavaObject contextObject = currentActivity.Call("getApplicationContext"); + Debug.Log("Android Context: " + contextObject.Call("toString")); + kwaiAdSdkClass.CallStatic("init", contextObject, sdkConfigBuilder.Call("build")); + } + else + { + Debug.LogError("Current Activity not found."); + kwaiUnityCallback.onFail(1, $"{TAG}: Current Activity not found."); + return; + } + } + + [System.Serializable] + private class KwaiUnityCallback : AndroidJavaProxy + { + public KwaiUnityCallback() : base(SDKClientInitCallback) { } + + public void onSuccess() + { + Debug.Log($"{TAG}: Kwai SDK initialized successfully."); + if (initCallback != null) + { + initCallback.OnSuccess(); + } + } + + public void onFail(int code, string msg) + { + Debug.LogError($"{TAG}: Kwai SDK initialization failed. Code: {code}, Message: {msg}"); + if (initCallback != null) + { + initCallback.OnFail(code, msg); + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiAdSDKInit.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiAdSDKInit.cs.meta new file mode 100644 index 0000000..0dcdcd3 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiAdSDKInit.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8225807b5469a4df4a11ec59cc223f4d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiInterstitialAdController.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiInterstitialAdController.cs new file mode 100644 index 0000000..612e521 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiInterstitialAdController.cs @@ -0,0 +1,240 @@ +#if UNITY_ANDROID +using BigoAds.Scripts.Platforms.Android; +using KwaiAds.Scripts.Api; +using KwaiAds.Scripts.Api.Interstitial; +using UnityEngine; + +namespace KwaiAds.Scripts.Platforms.Android +{ + public class KwaiInterstitialAdController : IInterstitialAdController + { + private const string TAG = "[KwaiAdSDK-InterstitialAdController]"; + private const string InterstitialAdConfigBuilderClassName = AndroidPlatformTool.ClassPackage + ".loader.business.interstitial.data.KwaiInterstitialAdConfig$Builder"; + private const string KwaiInterstitialAdListenerClassName = AndroidPlatformTool.ClassPackage + ".loader.business.interstitial.interf.IKwaiInterstitialAdListener"; + private const string AdLoadListenerClassName = AndroidPlatformTool.ClassPackage + ".loader.common.interf.AdLoadListener"; + private const string KwaiInterstitialAdRequestClassName = AndroidPlatformTool.ClassPackage + ".loader.business.interstitial.data.KwaiInterstitialAdRequest"; + private const string KwaiAdLoaderManagerMethodName = "getKwaiAdLoaderManager"; + private const string WithKwaiInterstitialAdListenerMethodName = "withKwaiInterstitialAdListener"; + private const string BuildInterstitialAdLoaderMethodName = "buildInterstitialAdLoader"; + + private AndroidJavaClass _KwaiAdSDKInit; + private AdLoadListener _AdLoadListener; + private InterstitialAdListener _InterstitialAdListener; + private AndroidJavaObject _KwaiInterstitialAd; + + public bool Load(KwaiInterstitialAdRequest request, IInterstitialAdListener adListener, IInterstitialAdLoadListener adLoadListener) + { + _KwaiAdSDKInit = Android.KwaiAdSDKInit.Instance.GetKwaiAdSDKClass(); + if (_KwaiAdSDKInit == null) + { + Debug.Log($"{TAG}: kwaiAdSDKInit is null."); + return false; + } + + var loaderManager = _KwaiAdSDKInit.CallStatic(KwaiAdLoaderManagerMethodName); + if (loaderManager == null) + { + Debug.Log($"{TAG}: loaderManager is null."); + return false; + } + else + { + _AdLoadListener = new AdLoadListener(adLoadListener, this); + _InterstitialAdListener = new InterstitialAdListener(adListener); + var kwaiInterstitialAdConfig = new AndroidJavaObject(InterstitialAdConfigBuilderClassName, _AdLoadListener); + if (kwaiInterstitialAdConfig == null) + { + Debug.LogError($"{TAG}: Failed to create kwaiInterstitialAdConfig builder."); + return false; + } + kwaiInterstitialAdConfig.Call(WithKwaiInterstitialAdListenerMethodName, _InterstitialAdListener); + + var kwaiInterstitialAdAdLoader = loaderManager.Call(BuildInterstitialAdLoaderMethodName, kwaiInterstitialAdConfig.Call("build")); + var adRequest = new AndroidJavaObject(KwaiInterstitialAdRequestClassName, request.TagId); + string floorPrice = request.ExtParams[Constants.Request.BID_FLOOR_PRICE]; + if (floorPrice != null && floorPrice.Length != 0) + { + Debug.Log($"{TAG}: floorPrice: {floorPrice}."); + adRequest.Get("extParams").Call("put", Constants.Request.BID_FLOOR_PRICE, floorPrice); + } + kwaiInterstitialAdAdLoader.Call("loadAd", adRequest); + } + return true; + } + + public void Show() + { + if (IsReady()) + { + AndroidJavaObject currentActivity = AndroidPlatformTool.GetGameActivity(); + if (currentActivity == null) + { + Debug.Log($"{TAG}: Current Game Activity not found."); + } + else + { + Debug.Log($"{TAG}: start showing."); + _KwaiInterstitialAd.Call("show", currentActivity); + } + + } + else + { + Debug.Log($"{TAG}: IsLoaded: {IsLoaded()}, IsReady: {IsReady()}."); + } + } + + public void Destroy() + { + if (_AdLoadListener != null) + { + _AdLoadListener.Destory(); + _AdLoadListener = null; + } + + if (_InterstitialAdListener != null) + { + _InterstitialAdListener.Destory(); + } + + _KwaiInterstitialAd = null; + } + + public bool IsLoaded() + { + return _KwaiInterstitialAd != null; + } + + public bool IsReady() + { + return IsLoaded() && _KwaiInterstitialAd.Call("isReady"); + } + + public void NotifyLoss() + { + if (_KwaiInterstitialAd != null) + { + _KwaiInterstitialAd.Call("getBidController", "sendBidLose"); + } + } + + public void NotifyWin() + { + if (_KwaiInterstitialAd != null) + { + _KwaiInterstitialAd.Call("getBidController", "sendBidWin"); + } + } + + private class AdLoadListener : AndroidJavaProxy + { + private IInterstitialAdLoadListener _InterstitialAdLoadListener; + private KwaiInterstitialAdController _KwaiInterstitialAdController; + public AdLoadListener(IInterstitialAdLoadListener interstitialAdLoadListener, KwaiInterstitialAdController kwaiInterstitialAdController) : base(AdLoadListenerClassName) + { + this._InterstitialAdLoadListener = interstitialAdLoadListener; + this._KwaiInterstitialAdController = kwaiInterstitialAdController; + } + + public void onAdLoadStart(string trackId) + { + Debug.Log($"{TAG}: onAdLoadStart"); + if (_InterstitialAdLoadListener != null) + { + _InterstitialAdLoadListener.OnAdLoadStart(trackId); + } + } + + public void onAdLoadSuccess(string trackId, AndroidJavaObject kwaiInterstitialAd) + { + _KwaiInterstitialAdController._KwaiInterstitialAd = kwaiInterstitialAd; + string price = kwaiInterstitialAd.Call("getPrice"); + Debug.Log($"{TAG}: onAdLoaded: {kwaiInterstitialAd.Call("getPrice")}"); + if (_InterstitialAdLoadListener != null) + { + _InterstitialAdLoadListener.OnAdLoadSuccess(trackId, price); + } + } + + public void onAdLoadFailed(string trackId, AndroidJavaObject kwaiError) + { + int code = kwaiError.Call("getCode"); + string msg = kwaiError.Call("getMsg"); + Debug.LogError($"{TAG}: onAdLoadFailed code = {code} msg = {msg}"); + if (_InterstitialAdLoadListener != null) + { + _InterstitialAdLoadListener.OnAdLoadFailed(trackId, code, msg); + } + } + + public void Destory() + { + _InterstitialAdLoadListener = null; + _KwaiInterstitialAdController = null; + } + } + + private class InterstitialAdListener : AndroidJavaProxy + { + private IInterstitialAdListener _InterstitialAdListener; + + public InterstitialAdListener(IInterstitialAdListener interstitialAdListener) : base(KwaiInterstitialAdListenerClassName) + { + _InterstitialAdListener = interstitialAdListener; + } + + public void onAdShow() + { + Debug.Log($"{TAG}: onAdShow"); + if (_InterstitialAdListener != null) + { + _InterstitialAdListener.OnAdShow(); + } + } + + public void onAdShowFailed(AndroidJavaObject error) + { + int code = error.Call("getCode"); + string msg = error.Call("getMsg"); + Debug.LogError($"{TAG}: onAdShowFailed code = {code} msg = {msg}"); + if (_InterstitialAdListener != null) + { + _InterstitialAdListener.OnAdShowFailed(code, msg); + } + } + + public void onAdClick() + { + Debug.Log($"{TAG}: onAdClick"); + if (_InterstitialAdListener != null) + { + _InterstitialAdListener.OnAdClick(); + } + } + + public void onAdClose() + { + Debug.Log($"{TAG}: onAdClose"); + if (_InterstitialAdListener != null) + { + _InterstitialAdListener.OnAdClose(); + } + } + + public void onAdPlayComplete() + { + Debug.Log($"{TAG}: onAdPlayComplete"); + if (_InterstitialAdListener != null) + { + _InterstitialAdListener.OnAdPlayComplete(); + } + } + + public void Destory() + { + _InterstitialAdListener = null; + } + } + } +} +#endif \ No newline at end of file diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiInterstitialAdController.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiInterstitialAdController.cs.meta new file mode 100644 index 0000000..c7e4bd3 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiInterstitialAdController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0981c7bc6c3f9404e8effcfa265e2632 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiRewardAdController.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiRewardAdController.cs new file mode 100644 index 0000000..69d2c9e --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiRewardAdController.cs @@ -0,0 +1,248 @@ +#if UNITY_ANDROID +using BigoAds.Scripts.Platforms.Android; +using KwaiAds.Scripts.Api; +using KwaiAds.Scripts.Api.Reward; +using UnityEngine; + +namespace KwaiAds.Scripts.Platforms.Android +{ + public class KwaiRewardAdController : IRewardAdController + { + private const string TAG = "[KwaiAdSDK-RewardAdController]"; + private const string RewardedAdConfigBuilderClassName = AndroidPlatformTool.ClassPackage + ".loader.business.reward.data.KwaiRewardAdConfig$Builder"; + private const string KwaiRewardAdListenerClassName = AndroidPlatformTool.ClassPackage + ".loader.business.reward.interf.IKwaiRewardAdListener"; + private const string AdLoadListenerClassName = AndroidPlatformTool.ClassPackage + ".loader.common.interf.AdLoadListener"; + private const string KwaiRewardAdRequestClassName = AndroidPlatformTool.ClassPackage + ".loader.business.reward.data.KwaiRewardAdRequest"; + private const string KwaiAdLoaderManagerMethodName = "getKwaiAdLoaderManager"; + private const string WithKwaiRewardAdListenerMethodName = "withKwaiRewardAdListener"; + private const string BuildRewardAdLoaderMethodName = "buildRewardAdLoader"; + + private AndroidJavaClass _KwaiAdSDKInit; + private AdLoadListener _AdLoadListener; + private RewardAdListener _RewardAdListener; + private AndroidJavaObject _KwaiRewardAd; + + public bool Load(KwaiRewardAdRequest request, IRewardAdListener rewardAdListener, IRewardAdLoadListener rewardAdLoadListener) + { + _KwaiAdSDKInit = Android.KwaiAdSDKInit.Instance.GetKwaiAdSDKClass(); + if (_KwaiAdSDKInit == null) + { + Debug.Log($"{TAG}: kwaiAdSDKInit is null."); + return false; + } + + var loaderManager = _KwaiAdSDKInit.CallStatic(KwaiAdLoaderManagerMethodName); + if (loaderManager == null) + { + Debug.Log($"{TAG}: loaderManager is null."); + return false; + } + else + { + _AdLoadListener = new AdLoadListener(rewardAdLoadListener, this); + _RewardAdListener = new RewardAdListener(rewardAdListener); + var kwaiRewardAdConfig = new AndroidJavaObject(RewardedAdConfigBuilderClassName, _AdLoadListener); + if (kwaiRewardAdConfig == null) + { + Debug.LogError($"{TAG}:Failed to create kwaiRewardAdConfig builder."); + return false; + } + kwaiRewardAdConfig.Call(WithKwaiRewardAdListenerMethodName, _RewardAdListener); + + var kwaiRewardAdAdLoader = loaderManager.Call(BuildRewardAdLoaderMethodName, kwaiRewardAdConfig.Call("build")); + var adRequest = new AndroidJavaObject(KwaiRewardAdRequestClassName, request.TagId); + string floorPrice = request.ExtParams[Constants.Request.BID_FLOOR_PRICE]; + if (floorPrice != null && floorPrice.Length != 0) + { + Debug.Log($"{TAG}: floorPrice: {floorPrice}."); + adRequest.Get("extParams").Call("put", Constants.Request.BID_FLOOR_PRICE, floorPrice); + } + kwaiRewardAdAdLoader.Call("loadAd", adRequest); + } + return true; + } + + public void Show() + { + if (IsReady()) + { + AndroidJavaObject currentActivity = AndroidPlatformTool.GetGameActivity(); + if (currentActivity == null) + { + Debug.Log($"{TAG}: Current Game Activity not found."); + } + else + { + Debug.Log($"{TAG}: start showing."); + _KwaiRewardAd.Call("show", currentActivity); + } + + } + else + { + Debug.Log($"{TAG}: IsLoaded: {IsLoaded()}, IsReady: {IsReady()}."); + } + } + + public void Destroy() + { + if (_AdLoadListener != null) + { + _AdLoadListener.Destory(); + _AdLoadListener = null; + } + + if (_RewardAdListener != null) + { + _RewardAdListener.Destory(); + } + + _KwaiRewardAd = null; + } + + public bool IsLoaded() + { + return _KwaiRewardAd != null; + } + + public bool IsReady() + { + return IsLoaded() && _KwaiRewardAd.Call("isReady"); + } + + public void NotifyLoss() + { + if (_KwaiRewardAd != null) + { + _KwaiRewardAd.Call("getBidController", "sendBidLose"); + } + } + + public void NotifyWin() + { + if (_KwaiRewardAd != null) + { + _KwaiRewardAd.Call("getBidController", "sendBidWin"); + } + } + + private class AdLoadListener : AndroidJavaProxy + { + private IRewardAdLoadListener _RewardAdLoadListener; + private KwaiRewardAdController _KwaiRewardAdController; + public AdLoadListener(IRewardAdLoadListener rewardAdListener, KwaiRewardAdController kwaiRewardAdController) : base(AdLoadListenerClassName) + { + this._RewardAdLoadListener = rewardAdListener; + this._KwaiRewardAdController = kwaiRewardAdController; + } + + public void onAdLoadStart(string trackId) + { + Debug.Log($"{TAG}: onAdLoadStart"); + if (_RewardAdLoadListener != null) + { + _RewardAdLoadListener.OnAdLoadStart(trackId); + } + } + + public void onAdLoadSuccess(string trackId, AndroidJavaObject kwaiRewardAd) + { + _KwaiRewardAdController._KwaiRewardAd = kwaiRewardAd; + string price = kwaiRewardAd.Call("getPrice"); + Debug.Log($"{TAG}: onAdLoaded: {kwaiRewardAd.Call("getPrice")}"); + if (_RewardAdLoadListener != null) + { + _RewardAdLoadListener.OnAdLoadSuccess(trackId, price); + } + } + + public void onAdLoadFailed(string trackId, AndroidJavaObject kwaiError) + { + int code = kwaiError.Call("getCode"); + string msg = kwaiError.Call("getMsg"); + Debug.LogError($"{TAG}: onAdLoadFailed code = {code} msg = {msg}"); + if (_RewardAdLoadListener != null) + { + _RewardAdLoadListener.OnAdLoadFailed(trackId, code, msg); + } + } + + public void Destory() + { + _RewardAdLoadListener = null; + _KwaiRewardAdController = null; + } + } + + private class RewardAdListener : AndroidJavaProxy + { + private IRewardAdListener _RewardAdListener; + + public RewardAdListener(IRewardAdListener rewardAdListener) : base(KwaiRewardAdListenerClassName) { + _RewardAdListener = rewardAdListener; + } + + public void onAdShow() + { + Debug.Log($"{TAG}: onAdShow"); + if (_RewardAdListener != null) + { + _RewardAdListener.OnAdShow(); + } + } + + public void onAdShowFailed(AndroidJavaObject error) + { + int code = error.Call("getCode"); + string msg = error.Call("getMsg"); + Debug.LogError($"{TAG}: onAdShowFailed code = {code} msg = {msg}"); + if (_RewardAdListener != null) + { + _RewardAdListener.OnAdShowFailed(code, msg); + } + } + + public void onAdClick() + { + Debug.Log($"{TAG}: onAdClick"); + if (_RewardAdListener != null) + { + _RewardAdListener.OnAdClick(); + } + } + + public void onAdPlayComplete() + { + Debug.Log($"{TAG}: onAdPlayComplete"); + if (_RewardAdListener != null) + { + _RewardAdListener.OnAdPlayComplete(); + } + } + + public void onRewardEarned() + { + Debug.Log($"{TAG}: onRewarded"); + if (_RewardAdListener != null) + { + _RewardAdListener.OnRewardEarned(); + } + } + + public void onAdClose() + { + Debug.Log($"{TAG}: onAdClose"); + if (_RewardAdListener != null) + { + _RewardAdListener.OnAdClose(); + } + } + + public void Destory() + { + _RewardAdListener = null; + } + } + } +} +#endif \ No newline at end of file diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiRewardAdController.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiRewardAdController.cs.meta new file mode 100644 index 0000000..0e96584 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiRewardAdController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ac60b4b82a68d4feb811961ea98ad413 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiSdkClient.cs b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiSdkClient.cs new file mode 100644 index 0000000..1ee4d17 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiSdkClient.cs @@ -0,0 +1,27 @@ +#if UNITY_ANDROID +using KwaiAds.Scripts.Api; +using KwaiAds.Scripts.Api.Interstitial; +using KwaiAds.Scripts.Api.Reward; +using KwaiAds.Scripts.Common; + +namespace KwaiAds.Scripts.Platforms.Android +{ + public class KwaiSdkClient: ISDK + { + public void Init(KwaiAdConfig config, InitResultCallback initResultCallback) + { + KwaiAdSDKInit.Initialize(config, initResultCallback); + } + + public IRewardAdController getRewardAdController() + { + return new KwaiRewardAdController(); + } + + public IInterstitialAdController getInterstitialAdController() + { + return new KwaiInterstitialAdController(); + } + } +} +#endif \ No newline at end of file diff --git a/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiSdkClient.cs.meta b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiSdkClient.cs.meta new file mode 100644 index 0000000..133e3b2 --- /dev/null +++ b/Assets/rd3/AdsSDK/KwaiAds/Scripts/Platform/Android/KwaiSdkClient.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 440ab8edeedf747c48701c4009831273 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/ProjectSettings/AudioManager.asset b/ProjectSettings/AudioManager.asset new file mode 100644 index 0000000..27287fe --- /dev/null +++ b/ProjectSettings/AudioManager.asset @@ -0,0 +1,19 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!11 &1 +AudioManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Volume: 1 + Rolloff Scale: 1 + Doppler Factor: 1 + Default Speaker Mode: 2 + m_SampleRate: 0 + m_DSPBufferSize: 1024 + m_VirtualVoiceCount: 512 + m_RealVoiceCount: 32 + m_SpatializerPlugin: + m_AmbisonicDecoderPlugin: + m_DisableAudio: 0 + m_VirtualizeEffects: 1 + m_RequestedDSPBufferSize: 0 diff --git a/ProjectSettings/ClusterInputManager.asset b/ProjectSettings/ClusterInputManager.asset new file mode 100644 index 0000000..e7886b2 --- /dev/null +++ b/ProjectSettings/ClusterInputManager.asset @@ -0,0 +1,6 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!236 &1 +ClusterInputManager: + m_ObjectHideFlags: 0 + m_Inputs: [] diff --git a/ProjectSettings/DynamicsManager.asset b/ProjectSettings/DynamicsManager.asset new file mode 100644 index 0000000..72d1430 --- /dev/null +++ b/ProjectSettings/DynamicsManager.asset @@ -0,0 +1,37 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!55 &1 +PhysicsManager: + m_ObjectHideFlags: 0 + serializedVersion: 13 + m_Gravity: {x: 0, y: -9.81, z: 0} + m_DefaultMaterial: {fileID: 0} + m_BounceThreshold: 2 + m_DefaultMaxDepenetrationVelocity: 10 + m_SleepThreshold: 0.005 + m_DefaultContactOffset: 0.01 + m_DefaultSolverIterations: 6 + m_DefaultSolverVelocityIterations: 1 + m_QueriesHitBackfaces: 0 + m_QueriesHitTriggers: 1 + m_EnableAdaptiveForce: 0 + m_ClothInterCollisionDistance: 0.1 + m_ClothInterCollisionStiffness: 0.2 + m_ContactsGeneration: 1 + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff + m_AutoSimulation: 1 + m_AutoSyncTransforms: 0 + m_ReuseCollisionCallbacks: 1 + m_ClothInterCollisionSettingsToggle: 0 + m_ClothGravity: {x: 0, y: -9.81, z: 0} + m_ContactPairsMode: 0 + m_BroadphaseType: 0 + m_WorldBounds: + m_Center: {x: 0, y: 0, z: 0} + m_Extent: {x: 250, y: 250, z: 250} + m_WorldSubdivisions: 8 + m_FrictionType: 0 + m_EnableEnhancedDeterminism: 0 + m_EnableUnifiedHeightmaps: 1 + m_SolverType: 0 + m_DefaultMaxAngularSpeed: 50 diff --git a/ProjectSettings/EditorBuildSettings.asset b/ProjectSettings/EditorBuildSettings.asset new file mode 100644 index 0000000..f4b0bf3 --- /dev/null +++ b/ProjectSettings/EditorBuildSettings.asset @@ -0,0 +1,11 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1045 &1 +EditorBuildSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Scenes: + - enabled: 1 + path: Assets/Scenes/GameScene.unity + guid: 2cda990e2423bbf4892e6590ba056729 + m_configObjects: {} diff --git a/ProjectSettings/EditorSettings.asset b/ProjectSettings/EditorSettings.asset new file mode 100644 index 0000000..fa3ed49 --- /dev/null +++ b/ProjectSettings/EditorSettings.asset @@ -0,0 +1,40 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!159 &1 +EditorSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_SerializationMode: 2 + m_LineEndingsForNewScripts: 0 + m_DefaultBehaviorMode: 1 + m_PrefabRegularEnvironment: {fileID: 0} + m_PrefabUIEnvironment: {fileID: 0} + m_SpritePackerMode: 4 + m_SpritePackerPaddingPower: 1 + m_EtcTextureCompressorBehavior: 1 + m_EtcTextureFastCompressor: 1 + m_EtcTextureNormalCompressor: 2 + m_EtcTextureBestCompressor: 4 + m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;asmref;rsp + m_ProjectGenerationRootNamespace: + m_EnableTextureStreamingInEditMode: 1 + m_EnableTextureStreamingInPlayMode: 1 + m_AsyncShaderCompilation: 1 + m_CachingShaderPreprocessor: 1 + m_PrefabModeAllowAutoSave: 1 + m_EnterPlayModeOptionsEnabled: 0 + m_EnterPlayModeOptions: 3 + m_GameObjectNamingDigits: 1 + m_GameObjectNamingScheme: 0 + m_AssetNamingUsesSpace: 1 + m_UseLegacyProbeSampleCount: 0 + m_SerializeInlineMappingsOnOneLine: 1 + m_DisableCookiesInLightmapper: 1 + m_AssetPipelineMode: 1 + m_CacheServerMode: 0 + m_CacheServerEndpoint: + m_CacheServerNamespacePrefix: default + m_CacheServerEnableDownload: 1 + m_CacheServerEnableUpload: 1 + m_CacheServerEnableAuth: 0 + m_CacheServerEnableTls: 0 diff --git a/ProjectSettings/GraphicsSettings.asset b/ProjectSettings/GraphicsSettings.asset new file mode 100644 index 0000000..c165afb --- /dev/null +++ b/ProjectSettings/GraphicsSettings.asset @@ -0,0 +1,64 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!30 &1 +GraphicsSettings: + m_ObjectHideFlags: 0 + serializedVersion: 13 + m_Deferred: + m_Mode: 1 + m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} + m_DeferredReflections: + m_Mode: 1 + m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} + m_ScreenSpaceShadows: + m_Mode: 1 + m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} + m_LegacyDeferred: + m_Mode: 1 + m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} + m_DepthNormals: + m_Mode: 1 + m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} + m_MotionVectors: + m_Mode: 1 + m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} + m_LightHalo: + m_Mode: 1 + m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} + m_LensFlare: + m_Mode: 1 + m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} + m_VideoShadersIncludeMode: 2 + m_AlwaysIncludedShaders: + - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0} + m_PreloadedShaders: [] + m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_CustomRenderPipeline: {fileID: 0} + m_TransparencySortMode: 0 + m_TransparencySortAxis: {x: 0, y: 0, z: 1} + m_DefaultRenderingPath: 1 + m_DefaultMobileRenderingPath: 1 + m_TierSettings: [] + m_LightmapStripping: 0 + m_FogStripping: 0 + m_InstancingStripping: 0 + m_LightmapKeepPlain: 1 + m_LightmapKeepDirCombined: 1 + m_LightmapKeepDynamicPlain: 1 + m_LightmapKeepDynamicDirCombined: 1 + m_LightmapKeepShadowMask: 1 + m_LightmapKeepSubtractive: 1 + m_FogKeepLinear: 1 + m_FogKeepExp: 1 + m_FogKeepExp2: 1 + m_AlbedoSwatchInfos: [] + m_LightsUseLinearIntensity: 0 + m_LightsUseColorTemperature: 0 + m_DefaultRenderingLayerMask: 1 + m_LogWhenShaderIsCompiled: 0 diff --git a/ProjectSettings/InputManager.asset b/ProjectSettings/InputManager.asset new file mode 100644 index 0000000..b16147e --- /dev/null +++ b/ProjectSettings/InputManager.asset @@ -0,0 +1,487 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!13 &1 +InputManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Axes: + - serializedVersion: 3 + m_Name: Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: left + positiveButton: right + altNegativeButton: a + altPositiveButton: d + gravity: 3 + dead: 0.001 + sensitivity: 3 + snap: 1 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: down + positiveButton: up + altNegativeButton: s + altPositiveButton: w + gravity: 3 + dead: 0.001 + sensitivity: 3 + snap: 1 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire1 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left ctrl + altNegativeButton: + altPositiveButton: mouse 0 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire2 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left alt + altNegativeButton: + altPositiveButton: mouse 1 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire3 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left shift + altNegativeButton: + altPositiveButton: mouse 2 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Jump + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: space + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse X + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 1 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse Y + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 1 + axis: 1 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse ScrollWheel + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 1 + axis: 2 + joyNum: 0 + - serializedVersion: 3 + m_Name: Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0.19 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0.19 + sensitivity: 1 + snap: 0 + invert: 1 + type: 2 + axis: 1 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire1 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 0 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire2 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 1 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire3 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 2 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Jump + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 3 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Submit + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: return + altNegativeButton: + altPositiveButton: joystick button 0 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Submit + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: enter + altNegativeButton: + altPositiveButton: space + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Cancel + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Enable Debug Button 1 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left ctrl + altNegativeButton: + altPositiveButton: joystick button 8 + gravity: 0 + dead: 0 + sensitivity: 0 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Enable Debug Button 2 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: backspace + altNegativeButton: + altPositiveButton: joystick button 9 + gravity: 0 + dead: 0 + sensitivity: 0 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Reset + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left alt + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 0 + dead: 0 + sensitivity: 0 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Next + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: page down + altNegativeButton: + altPositiveButton: joystick button 5 + gravity: 0 + dead: 0 + sensitivity: 0 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Previous + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: page up + altNegativeButton: + altPositiveButton: joystick button 4 + gravity: 0 + dead: 0 + sensitivity: 0 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Validate + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: return + altNegativeButton: + altPositiveButton: joystick button 0 + gravity: 0 + dead: 0 + sensitivity: 0 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Persistent + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: right shift + altNegativeButton: + altPositiveButton: joystick button 2 + gravity: 0 + dead: 0 + sensitivity: 0 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Multiplier + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left shift + altNegativeButton: + altPositiveButton: joystick button 3 + gravity: 0 + dead: 0 + sensitivity: 0 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: left + positiveButton: right + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: down + positiveButton: up + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: down + positiveButton: up + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 2 + axis: 6 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: left + positiveButton: right + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 2 + axis: 5 + joyNum: 0 diff --git a/ProjectSettings/MemorySettings.asset b/ProjectSettings/MemorySettings.asset new file mode 100644 index 0000000..5b5face --- /dev/null +++ b/ProjectSettings/MemorySettings.asset @@ -0,0 +1,35 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!387306366 &1 +MemorySettings: + m_ObjectHideFlags: 0 + m_EditorMemorySettings: + m_MainAllocatorBlockSize: -1 + m_ThreadAllocatorBlockSize: -1 + m_MainGfxBlockSize: -1 + m_ThreadGfxBlockSize: -1 + m_CacheBlockSize: -1 + m_TypetreeBlockSize: -1 + m_ProfilerBlockSize: -1 + m_ProfilerEditorBlockSize: -1 + m_BucketAllocatorGranularity: -1 + m_BucketAllocatorBucketsCount: -1 + m_BucketAllocatorBlockSize: -1 + m_BucketAllocatorBlockCount: -1 + m_ProfilerBucketAllocatorGranularity: -1 + m_ProfilerBucketAllocatorBucketsCount: -1 + m_ProfilerBucketAllocatorBlockSize: -1 + m_ProfilerBucketAllocatorBlockCount: -1 + m_TempAllocatorSizeMain: -1 + m_JobTempAllocatorBlockSize: -1 + m_BackgroundJobTempAllocatorBlockSize: -1 + m_JobTempAllocatorReducedBlockSize: -1 + m_TempAllocatorSizeGIBakingWorker: -1 + m_TempAllocatorSizeNavMeshWorker: -1 + m_TempAllocatorSizeAudioWorker: -1 + m_TempAllocatorSizeCloudWorker: -1 + m_TempAllocatorSizeGfx: -1 + m_TempAllocatorSizeJobWorker: -1 + m_TempAllocatorSizeBackgroundWorker: -1 + m_TempAllocatorSizePreloadManager: -1 + m_PlatformMemorySettings: {} diff --git a/ProjectSettings/NavMeshAreas.asset b/ProjectSettings/NavMeshAreas.asset new file mode 100644 index 0000000..ad2654e --- /dev/null +++ b/ProjectSettings/NavMeshAreas.asset @@ -0,0 +1,93 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!126 &1 +NavMeshProjectSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + areas: + - name: Walkable + cost: 1 + - name: Not Walkable + cost: 1 + - name: Jump + cost: 2 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + m_LastAgentTypeID: -887442657 + m_Settings: + - serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.75 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 + debug: + m_Flags: 0 + m_SettingNames: + - Humanoid diff --git a/ProjectSettings/NetworkManager.asset b/ProjectSettings/NetworkManager.asset new file mode 100644 index 0000000..5dc6a83 --- /dev/null +++ b/ProjectSettings/NetworkManager.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!149 &1 +NetworkManager: + m_ObjectHideFlags: 0 + m_DebugLevel: 0 + m_Sendrate: 15 + m_AssetToPrefab: {} diff --git a/ProjectSettings/PackageManagerSettings.asset b/ProjectSettings/PackageManagerSettings.asset new file mode 100644 index 0000000..b3a65dd --- /dev/null +++ b/ProjectSettings/PackageManagerSettings.asset @@ -0,0 +1,44 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &1 +MonoBehaviour: + m_ObjectHideFlags: 61 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_EnablePreReleasePackages: 0 + m_EnablePackageDependencies: 0 + m_AdvancedSettingsExpanded: 1 + m_ScopedRegistriesSettingsExpanded: 1 + m_SeeAllPackageVersions: 0 + oneTimeWarningShown: 0 + m_Registries: + - m_Id: main + m_Name: + m_Url: https://packages.unity.com + m_Scopes: [] + m_IsDefault: 1 + m_Capabilities: 7 + m_UserSelectedRegistryName: + m_UserAddingNewScopedRegistry: 0 + m_RegistryInfoDraft: + m_ErrorMessage: + m_Original: + m_Id: + m_Name: + m_Url: + m_Scopes: [] + m_IsDefault: 0 + m_Capabilities: 0 + m_Modified: 0 + m_Name: + m_Url: + m_Scopes: + - + m_SelectedScopeIndex: 0 diff --git a/ProjectSettings/Physics2DSettings.asset b/ProjectSettings/Physics2DSettings.asset new file mode 100644 index 0000000..6cfcdda --- /dev/null +++ b/ProjectSettings/Physics2DSettings.asset @@ -0,0 +1,56 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!19 &1 +Physics2DSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_Gravity: {x: 0, y: -9.81} + m_DefaultMaterial: {fileID: 0} + m_VelocityIterations: 8 + m_PositionIterations: 3 + m_VelocityThreshold: 1 + m_MaxLinearCorrection: 0.2 + m_MaxAngularCorrection: 8 + m_MaxTranslationSpeed: 100 + m_MaxRotationSpeed: 360 + m_BaumgarteScale: 0.2 + m_BaumgarteTimeOfImpactScale: 0.75 + m_TimeToSleep: 0.5 + m_LinearSleepTolerance: 0.01 + m_AngularSleepTolerance: 2 + m_DefaultContactOffset: 0.01 + m_JobOptions: + serializedVersion: 2 + useMultithreading: 0 + useConsistencySorting: 0 + m_InterpolationPosesPerJob: 100 + m_NewContactsPerJob: 30 + m_CollideContactsPerJob: 100 + m_ClearFlagsPerJob: 200 + m_ClearBodyForcesPerJob: 200 + m_SyncDiscreteFixturesPerJob: 50 + m_SyncContinuousFixturesPerJob: 50 + m_FindNearestContactsPerJob: 100 + m_UpdateTriggerContactsPerJob: 100 + m_IslandSolverCostThreshold: 100 + m_IslandSolverBodyCostScale: 1 + m_IslandSolverContactCostScale: 10 + m_IslandSolverJointCostScale: 10 + m_IslandSolverBodiesPerJob: 50 + m_IslandSolverContactsPerJob: 50 + m_SimulationMode: 0 + m_QueriesHitTriggers: 1 + m_QueriesStartInColliders: 1 + m_CallbacksOnDisable: 1 + m_ReuseCollisionCallbacks: 1 + m_AutoSyncTransforms: 0 + m_AlwaysShowColliders: 0 + m_ShowColliderSleep: 1 + m_ShowColliderContacts: 0 + m_ShowColliderAABB: 0 + m_ContactArrowScale: 0.2 + m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} + m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} + m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} + m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff diff --git a/ProjectSettings/PresetManager.asset b/ProjectSettings/PresetManager.asset new file mode 100644 index 0000000..67a94da --- /dev/null +++ b/ProjectSettings/PresetManager.asset @@ -0,0 +1,7 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1386491679 &1 +PresetManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_DefaultPresets: {} diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset new file mode 100644 index 0000000..a96f3f4 --- /dev/null +++ b/ProjectSettings/ProjectSettings.asset @@ -0,0 +1,880 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!129 &1 +PlayerSettings: + m_ObjectHideFlags: 0 + serializedVersion: 24 + productGUID: f2a0be7d3bceb9a49abe0674537a2fe0 + AndroidProfiler: 0 + AndroidFilterTouchesWhenObscured: 0 + AndroidEnableSustainedPerformanceMode: 0 + defaultScreenOrientation: 4 + targetDevice: 2 + useOnDemandResources: 0 + accelerometerFrequency: 60 + companyName: DefaultCompany + productName: SDK_UnityMoney + defaultCursor: {fileID: 0} + cursorHotspot: {x: 0, y: 0} + m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} + m_ShowUnitySplashScreen: 1 + m_ShowUnitySplashLogo: 1 + m_SplashScreenOverlayOpacity: 1 + m_SplashScreenAnimation: 1 + m_SplashScreenLogoStyle: 1 + m_SplashScreenDrawMode: 0 + m_SplashScreenBackgroundAnimationZoom: 1 + m_SplashScreenLogoAnimationZoom: 1 + m_SplashScreenBackgroundLandscapeAspect: 1 + m_SplashScreenBackgroundPortraitAspect: 1 + m_SplashScreenBackgroundLandscapeUvs: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + m_SplashScreenBackgroundPortraitUvs: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + m_SplashScreenLogos: [] + m_VirtualRealitySplashScreen: {fileID: 0} + m_HolographicTrackingLossScreen: {fileID: 0} + defaultScreenWidth: 1920 + defaultScreenHeight: 1080 + defaultScreenWidthWeb: 960 + defaultScreenHeightWeb: 600 + m_StereoRenderingPath: 0 + m_ActiveColorSpace: 0 + unsupportedMSAAFallback: 0 + m_MTRendering: 1 + mipStripping: 0 + numberOfMipsStripped: 0 + m_StackTraceTypes: 010000000100000001000000010000000100000001000000 + iosShowActivityIndicatorOnLoading: -1 + androidShowActivityIndicatorOnLoading: -1 + iosUseCustomAppBackgroundBehavior: 0 + iosAllowHTTPDownload: 1 + allowedAutorotateToPortrait: 1 + allowedAutorotateToPortraitUpsideDown: 1 + allowedAutorotateToLandscapeRight: 1 + allowedAutorotateToLandscapeLeft: 1 + useOSAutorotation: 1 + use32BitDisplayBuffer: 1 + preserveFramebufferAlpha: 0 + disableDepthAndStencilBuffers: 0 + androidStartInFullscreen: 1 + androidRenderOutsideSafeArea: 1 + androidUseSwappy: 1 + androidBlitType: 0 + androidResizableWindow: 0 + androidDefaultWindowWidth: 1920 + androidDefaultWindowHeight: 1080 + androidMinimumWindowWidth: 400 + androidMinimumWindowHeight: 300 + androidFullscreenMode: 1 + androidAutoRotationBehavior: 1 + defaultIsNativeResolution: 1 + macRetinaSupport: 1 + runInBackground: 0 + captureSingleScreen: 0 + muteOtherAudioSources: 0 + Prepare IOS For Recording: 0 + Force IOS Speakers When Recording: 0 + deferSystemGesturesMode: 0 + hideHomeButton: 0 + submitAnalytics: 1 + usePlayerLog: 1 + bakeCollisionMeshes: 0 + forceSingleInstance: 0 + useFlipModelSwapchain: 1 + resizableWindow: 0 + useMacAppStoreValidation: 0 + macAppStoreCategory: public.app-category.games + gpuSkinning: 0 + xboxPIXTextureCapture: 0 + xboxEnableAvatar: 0 + xboxEnableKinect: 0 + xboxEnableKinectAutoTracking: 0 + xboxEnableFitness: 0 + visibleInBackground: 1 + allowFullscreenSwitch: 1 + fullscreenMode: 1 + xboxSpeechDB: 0 + xboxEnableHeadOrientation: 0 + xboxEnableGuest: 0 + xboxEnablePIXSampling: 0 + metalFramebufferOnly: 0 + xboxOneResolution: 0 + xboxOneSResolution: 0 + xboxOneXResolution: 3 + xboxOneMonoLoggingLevel: 0 + xboxOneLoggingLevel: 1 + xboxOneDisableEsram: 0 + xboxOneEnableTypeOptimization: 0 + xboxOnePresentImmediateThreshold: 0 + switchQueueCommandMemory: 1048576 + switchQueueControlMemory: 16384 + switchQueueComputeMemory: 262144 + switchNVNShaderPoolsGranularity: 33554432 + switchNVNDefaultPoolsGranularity: 16777216 + switchNVNOtherPoolsGranularity: 16777216 + switchNVNMaxPublicTextureIDCount: 0 + switchNVNMaxPublicSamplerIDCount: 0 + switchMaxWorkerMultiple: 8 + stadiaPresentMode: 0 + stadiaTargetFramerate: 0 + vulkanNumSwapchainBuffers: 3 + vulkanEnableSetSRGBWrite: 0 + vulkanEnablePreTransform: 0 + vulkanEnableLateAcquireNextImage: 0 + vulkanEnableCommandBufferRecycling: 1 + m_SupportedAspectRatios: + 4:3: 1 + 5:4: 1 + 16:10: 1 + 16:9: 1 + Others: 1 + bundleVersion: 1.0 + preloadedAssets: [] + metroInputSource: 0 + wsaTransparentSwapchain: 0 + m_HolographicPauseOnTrackingLoss: 1 + xboxOneDisableKinectGpuReservation: 1 + xboxOneEnable7thCore: 1 + vrSettings: + enable360StereoCapture: 0 + isWsaHolographicRemotingEnabled: 0 + enableFrameTimingStats: 0 + enableOpenGLProfilerGPURecorders: 1 + useHDRDisplay: 0 + D3DHDRBitDepth: 0 + m_ColorGamuts: 00000000 + targetPixelDensity: 30 + resolutionScalingMode: 0 + resetResolutionOnWindowResize: 0 + androidSupportedAspectRatio: 1 + androidMaxAspectRatio: 2.1 + applicationIdentifier: + Standalone: com.DefaultCompany.2DProject + buildNumber: + Standalone: 0 + iPhone: 0 + tvOS: 0 + overrideDefaultApplicationIdentifier: 1 + AndroidBundleVersionCode: 1 + AndroidMinSdkVersion: 22 + AndroidTargetSdkVersion: 0 + AndroidPreferredInstallLocation: 1 + aotOptions: + stripEngineCode: 1 + iPhoneStrippingLevel: 0 + iPhoneScriptCallOptimization: 0 + ForceInternetPermission: 0 + ForceSDCardPermission: 0 + CreateWallpaper: 0 + APKExpansionFiles: 0 + keepLoadedShadersAlive: 0 + StripUnusedMeshComponents: 0 + VertexChannelCompressionMask: 4054 + iPhoneSdkVersion: 988 + iOSTargetOSVersionString: 12.0 + tvOSSdkVersion: 0 + tvOSRequireExtendedGameController: 0 + tvOSTargetOSVersionString: 12.0 + uIPrerenderedIcon: 0 + uIRequiresPersistentWiFi: 0 + uIRequiresFullScreen: 1 + uIStatusBarHidden: 1 + uIExitOnSuspend: 0 + uIStatusBarStyle: 0 + appleTVSplashScreen: {fileID: 0} + appleTVSplashScreen2x: {fileID: 0} + tvOSSmallIconLayers: [] + tvOSSmallIconLayers2x: [] + tvOSLargeIconLayers: [] + tvOSLargeIconLayers2x: [] + tvOSTopShelfImageLayers: [] + tvOSTopShelfImageLayers2x: [] + tvOSTopShelfImageWideLayers: [] + tvOSTopShelfImageWideLayers2x: [] + iOSLaunchScreenType: 0 + iOSLaunchScreenPortrait: {fileID: 0} + iOSLaunchScreenLandscape: {fileID: 0} + iOSLaunchScreenBackgroundColor: + serializedVersion: 2 + rgba: 0 + iOSLaunchScreenFillPct: 100 + iOSLaunchScreenSize: 100 + iOSLaunchScreenCustomXibPath: + iOSLaunchScreeniPadType: 0 + iOSLaunchScreeniPadImage: {fileID: 0} + iOSLaunchScreeniPadBackgroundColor: + serializedVersion: 2 + rgba: 0 + iOSLaunchScreeniPadFillPct: 100 + iOSLaunchScreeniPadSize: 100 + iOSLaunchScreeniPadCustomXibPath: + iOSLaunchScreenCustomStoryboardPath: + iOSLaunchScreeniPadCustomStoryboardPath: + iOSDeviceRequirements: [] + iOSURLSchemes: [] + macOSURLSchemes: [] + iOSBackgroundModes: 0 + iOSMetalForceHardShadows: 0 + metalEditorSupport: 1 + metalAPIValidation: 1 + iOSRenderExtraFrameOnPause: 0 + iosCopyPluginsCodeInsteadOfSymlink: 0 + appleDeveloperTeamID: + iOSManualSigningProvisioningProfileID: + tvOSManualSigningProvisioningProfileID: + iOSManualSigningProvisioningProfileType: 0 + tvOSManualSigningProvisioningProfileType: 0 + appleEnableAutomaticSigning: 0 + iOSRequireARKit: 0 + iOSAutomaticallyDetectAndAddCapabilities: 1 + appleEnableProMotion: 0 + shaderPrecisionModel: 0 + clonedFromGUID: 10ad67313f4034357812315f3c407484 + templatePackageId: com.unity.template.2d@6.1.2 + templateDefaultScene: Assets/Scenes/SampleScene.unity + useCustomMainManifest: 0 + useCustomLauncherManifest: 0 + useCustomMainGradleTemplate: 0 + useCustomLauncherGradleManifest: 0 + useCustomBaseGradleTemplate: 0 + useCustomGradlePropertiesTemplate: 0 + useCustomProguardFile: 0 + AndroidTargetArchitectures: 1 + AndroidTargetDevices: 0 + AndroidSplashScreenScale: 0 + androidSplashScreen: {fileID: 0} + AndroidKeystoreName: + AndroidKeyaliasName: + AndroidBuildApkPerCpuArchitecture: 0 + AndroidTVCompatibility: 0 + AndroidIsGame: 1 + AndroidEnableTango: 0 + androidEnableBanner: 1 + androidUseLowAccuracyLocation: 0 + androidUseCustomKeystore: 0 + m_AndroidBanners: + - width: 320 + height: 180 + banner: {fileID: 0} + androidGamepadSupportLevel: 0 + chromeosInputEmulation: 1 + AndroidMinifyWithR8: 0 + AndroidMinifyRelease: 0 + AndroidMinifyDebug: 0 + AndroidValidateAppBundleSize: 1 + AndroidAppBundleSizeToValidate: 150 + m_BuildTargetIcons: [] + m_BuildTargetPlatformIcons: + - m_BuildTarget: Android + m_Icons: + - m_Textures: [] + m_Width: 432 + m_Height: 432 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 324 + m_Height: 324 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 216 + m_Height: 216 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 162 + m_Height: 162 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 108 + m_Height: 108 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 81 + m_Height: 81 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 192 + m_Height: 192 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 144 + m_Height: 144 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 96 + m_Height: 96 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 72 + m_Height: 72 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 48 + m_Height: 48 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 36 + m_Height: 36 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 192 + m_Height: 192 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 144 + m_Height: 144 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 96 + m_Height: 96 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 72 + m_Height: 72 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 48 + m_Height: 48 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 36 + m_Height: 36 + m_Kind: 0 + m_SubKind: + - m_BuildTarget: iPhone + m_Icons: + - m_Textures: [] + m_Width: 180 + m_Height: 180 + m_Kind: 0 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 120 + m_Height: 120 + m_Kind: 0 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 167 + m_Height: 167 + m_Kind: 0 + m_SubKind: iPad + - m_Textures: [] + m_Width: 152 + m_Height: 152 + m_Kind: 0 + m_SubKind: iPad + - m_Textures: [] + m_Width: 76 + m_Height: 76 + m_Kind: 0 + m_SubKind: iPad + - m_Textures: [] + m_Width: 120 + m_Height: 120 + m_Kind: 3 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 80 + m_Height: 80 + m_Kind: 3 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 80 + m_Height: 80 + m_Kind: 3 + m_SubKind: iPad + - m_Textures: [] + m_Width: 40 + m_Height: 40 + m_Kind: 3 + m_SubKind: iPad + - m_Textures: [] + m_Width: 87 + m_Height: 87 + m_Kind: 1 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 58 + m_Height: 58 + m_Kind: 1 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 29 + m_Height: 29 + m_Kind: 1 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 58 + m_Height: 58 + m_Kind: 1 + m_SubKind: iPad + - m_Textures: [] + m_Width: 29 + m_Height: 29 + m_Kind: 1 + m_SubKind: iPad + - m_Textures: [] + m_Width: 60 + m_Height: 60 + m_Kind: 2 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 40 + m_Height: 40 + m_Kind: 2 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 40 + m_Height: 40 + m_Kind: 2 + m_SubKind: iPad + - m_Textures: [] + m_Width: 20 + m_Height: 20 + m_Kind: 2 + m_SubKind: iPad + - m_Textures: [] + m_Width: 1024 + m_Height: 1024 + m_Kind: 4 + m_SubKind: App Store + m_BuildTargetBatching: [] + m_BuildTargetShaderSettings: [] + m_BuildTargetGraphicsJobs: + - m_BuildTarget: MacStandaloneSupport + m_GraphicsJobs: 0 + - m_BuildTarget: Switch + m_GraphicsJobs: 0 + - m_BuildTarget: MetroSupport + m_GraphicsJobs: 0 + - m_BuildTarget: AppleTVSupport + m_GraphicsJobs: 0 + - m_BuildTarget: BJMSupport + m_GraphicsJobs: 0 + - m_BuildTarget: LinuxStandaloneSupport + m_GraphicsJobs: 0 + - m_BuildTarget: PS4Player + m_GraphicsJobs: 0 + - m_BuildTarget: iOSSupport + m_GraphicsJobs: 0 + - m_BuildTarget: WindowsStandaloneSupport + m_GraphicsJobs: 0 + - m_BuildTarget: XboxOnePlayer + m_GraphicsJobs: 0 + - m_BuildTarget: LuminSupport + m_GraphicsJobs: 0 + - m_BuildTarget: AndroidPlayer + m_GraphicsJobs: 0 + - m_BuildTarget: WebGLSupport + m_GraphicsJobs: 0 + m_BuildTargetGraphicsJobMode: [] + m_BuildTargetGraphicsAPIs: + - m_BuildTarget: AndroidPlayer + m_APIs: 150000000b000000 + m_Automatic: 1 + - m_BuildTarget: iOSSupport + m_APIs: 10000000 + m_Automatic: 1 + m_BuildTargetVRSettings: [] + m_DefaultShaderChunkSizeInMB: 16 + m_DefaultShaderChunkCount: 0 + openGLRequireES31: 0 + openGLRequireES31AEP: 0 + openGLRequireES32: 0 + m_TemplateCustomTags: {} + mobileMTRendering: + Android: 1 + iPhone: 1 + tvOS: 1 + m_BuildTargetGroupLightmapEncodingQuality: [] + m_BuildTargetGroupLightmapSettings: [] + m_BuildTargetNormalMapEncoding: [] + m_BuildTargetDefaultTextureCompressionFormat: + - m_BuildTarget: Android + m_Format: 3 + playModeTestRunnerEnabled: 0 + runPlayModeTestAsEditModeTest: 0 + actionOnDotNetUnhandledException: 1 + enableInternalProfiler: 0 + logObjCUncaughtExceptions: 1 + enableCrashReportAPI: 0 + cameraUsageDescription: + locationUsageDescription: + microphoneUsageDescription: + bluetoothUsageDescription: + switchNMETAOverride: + switchNetLibKey: + switchSocketMemoryPoolSize: 6144 + switchSocketAllocatorPoolSize: 128 + switchSocketConcurrencyLimit: 14 + switchScreenResolutionBehavior: 2 + switchUseCPUProfiler: 0 + switchEnableFileSystemTrace: 0 + switchLTOSetting: 0 + switchApplicationID: 0x01004b9000490000 + switchNSODependencies: + switchTitleNames_0: + switchTitleNames_1: + switchTitleNames_2: + switchTitleNames_3: + switchTitleNames_4: + switchTitleNames_5: + switchTitleNames_6: + switchTitleNames_7: + switchTitleNames_8: + switchTitleNames_9: + switchTitleNames_10: + switchTitleNames_11: + switchTitleNames_12: + switchTitleNames_13: + switchTitleNames_14: + switchTitleNames_15: + switchPublisherNames_0: + switchPublisherNames_1: + switchPublisherNames_2: + switchPublisherNames_3: + switchPublisherNames_4: + switchPublisherNames_5: + switchPublisherNames_6: + switchPublisherNames_7: + switchPublisherNames_8: + switchPublisherNames_9: + switchPublisherNames_10: + switchPublisherNames_11: + switchPublisherNames_12: + switchPublisherNames_13: + switchPublisherNames_14: + switchPublisherNames_15: + switchIcons_0: {fileID: 0} + switchIcons_1: {fileID: 0} + switchIcons_2: {fileID: 0} + switchIcons_3: {fileID: 0} + switchIcons_4: {fileID: 0} + switchIcons_5: {fileID: 0} + switchIcons_6: {fileID: 0} + switchIcons_7: {fileID: 0} + switchIcons_8: {fileID: 0} + switchIcons_9: {fileID: 0} + switchIcons_10: {fileID: 0} + switchIcons_11: {fileID: 0} + switchIcons_12: {fileID: 0} + switchIcons_13: {fileID: 0} + switchIcons_14: {fileID: 0} + switchIcons_15: {fileID: 0} + switchSmallIcons_0: {fileID: 0} + switchSmallIcons_1: {fileID: 0} + switchSmallIcons_2: {fileID: 0} + switchSmallIcons_3: {fileID: 0} + switchSmallIcons_4: {fileID: 0} + switchSmallIcons_5: {fileID: 0} + switchSmallIcons_6: {fileID: 0} + switchSmallIcons_7: {fileID: 0} + switchSmallIcons_8: {fileID: 0} + switchSmallIcons_9: {fileID: 0} + switchSmallIcons_10: {fileID: 0} + switchSmallIcons_11: {fileID: 0} + switchSmallIcons_12: {fileID: 0} + switchSmallIcons_13: {fileID: 0} + switchSmallIcons_14: {fileID: 0} + switchSmallIcons_15: {fileID: 0} + switchManualHTML: + switchAccessibleURLs: + switchLegalInformation: + switchMainThreadStackSize: 1048576 + switchPresenceGroupId: + switchLogoHandling: 0 + switchReleaseVersion: 0 + switchDisplayVersion: 1.0.0 + switchStartupUserAccount: 0 + switchSupportedLanguagesMask: 0 + switchLogoType: 0 + switchApplicationErrorCodeCategory: + switchUserAccountSaveDataSize: 0 + switchUserAccountSaveDataJournalSize: 0 + switchApplicationAttribute: 0 + switchCardSpecSize: -1 + switchCardSpecClock: -1 + switchRatingsMask: 0 + switchRatingsInt_0: 0 + switchRatingsInt_1: 0 + switchRatingsInt_2: 0 + switchRatingsInt_3: 0 + switchRatingsInt_4: 0 + switchRatingsInt_5: 0 + switchRatingsInt_6: 0 + switchRatingsInt_7: 0 + switchRatingsInt_8: 0 + switchRatingsInt_9: 0 + switchRatingsInt_10: 0 + switchRatingsInt_11: 0 + switchRatingsInt_12: 0 + switchLocalCommunicationIds_0: + switchLocalCommunicationIds_1: + switchLocalCommunicationIds_2: + switchLocalCommunicationIds_3: + switchLocalCommunicationIds_4: + switchLocalCommunicationIds_5: + switchLocalCommunicationIds_6: + switchLocalCommunicationIds_7: + switchParentalControl: 0 + switchAllowsScreenshot: 1 + switchAllowsVideoCapturing: 1 + switchAllowsRuntimeAddOnContentInstall: 0 + switchDataLossConfirmation: 0 + switchUserAccountLockEnabled: 0 + switchSystemResourceMemory: 16777216 + switchSupportedNpadStyles: 22 + switchNativeFsCacheSize: 32 + switchIsHoldTypeHorizontal: 0 + switchSupportedNpadCount: 8 + switchEnableTouchScreen: 1 + switchSocketConfigEnabled: 0 + switchTcpInitialSendBufferSize: 32 + switchTcpInitialReceiveBufferSize: 64 + switchTcpAutoSendBufferSizeMax: 256 + switchTcpAutoReceiveBufferSizeMax: 256 + switchUdpSendBufferSize: 9 + switchUdpReceiveBufferSize: 42 + switchSocketBufferEfficiency: 4 + switchSocketInitializeEnabled: 1 + switchNetworkInterfaceManagerInitializeEnabled: 1 + switchUseNewStyleFilepaths: 0 + switchUseLegacyFmodPriorities: 1 + switchUseMicroSleepForYield: 1 + switchEnableRamDiskSupport: 0 + switchMicroSleepForYieldTime: 25 + switchRamDiskSpaceSize: 12 + ps4NPAgeRating: 12 + ps4NPTitleSecret: + ps4NPTrophyPackPath: + ps4ParentalLevel: 11 + ps4ContentID: ED1633-NPXX51362_00-0000000000000000 + ps4Category: 0 + ps4MasterVersion: 01.00 + ps4AppVersion: 01.00 + ps4AppType: 0 + ps4ParamSfxPath: + ps4VideoOutPixelFormat: 0 + ps4VideoOutInitialWidth: 1920 + ps4VideoOutBaseModeInitialWidth: 1920 + ps4VideoOutReprojectionRate: 60 + ps4PronunciationXMLPath: + ps4PronunciationSIGPath: + ps4BackgroundImagePath: + ps4StartupImagePath: + ps4StartupImagesFolder: + ps4IconImagesFolder: + ps4SaveDataImagePath: + ps4SdkOverride: + ps4BGMPath: + ps4ShareFilePath: + ps4ShareOverlayImagePath: + ps4PrivacyGuardImagePath: + ps4ExtraSceSysFile: + ps4NPtitleDatPath: + ps4RemotePlayKeyAssignment: -1 + ps4RemotePlayKeyMappingDir: + ps4PlayTogetherPlayerCount: 0 + ps4EnterButtonAssignment: 2 + ps4ApplicationParam1: 0 + ps4ApplicationParam2: 0 + ps4ApplicationParam3: 0 + ps4ApplicationParam4: 0 + ps4DownloadDataSize: 0 + ps4GarlicHeapSize: 2048 + ps4ProGarlicHeapSize: 2560 + playerPrefsMaxSize: 32768 + ps4Passcode: bi9UOuSpM2Tlh01vOzwvSikHFswuzleh + ps4pnSessions: 1 + ps4pnPresence: 1 + ps4pnFriends: 1 + ps4pnGameCustomData: 1 + playerPrefsSupport: 0 + enableApplicationExit: 0 + resetTempFolder: 1 + restrictedAudioUsageRights: 0 + ps4UseResolutionFallback: 0 + ps4ReprojectionSupport: 0 + ps4UseAudio3dBackend: 0 + ps4UseLowGarlicFragmentationMode: 1 + ps4SocialScreenEnabled: 0 + ps4ScriptOptimizationLevel: 2 + ps4Audio3dVirtualSpeakerCount: 14 + ps4attribCpuUsage: 0 + ps4PatchPkgPath: + ps4PatchLatestPkgPath: + ps4PatchChangeinfoPath: + ps4PatchDayOne: 0 + ps4attribUserManagement: 0 + ps4attribMoveSupport: 0 + ps4attrib3DSupport: 0 + ps4attribShareSupport: 0 + ps4attribExclusiveVR: 0 + ps4disableAutoHideSplash: 0 + ps4videoRecordingFeaturesUsed: 0 + ps4contentSearchFeaturesUsed: 0 + ps4CompatibilityPS5: 0 + ps4AllowPS5Detection: 0 + ps4GPU800MHz: 1 + ps4attribEyeToEyeDistanceSettingVR: 0 + ps4IncludedModules: [] + ps4attribVROutputEnabled: 0 + monoEnv: + splashScreenBackgroundSourceLandscape: {fileID: 0} + splashScreenBackgroundSourcePortrait: {fileID: 0} + blurSplashScreenBackground: 1 + spritePackerPolicy: + webGLMemorySize: 32 + webGLExceptionSupport: 1 + webGLNameFilesAsHashes: 0 + webGLDataCaching: 1 + webGLDebugSymbols: 0 + webGLEmscriptenArgs: + webGLModulesDirectory: + webGLTemplate: APPLICATION:Default + webGLAnalyzeBuildSize: 0 + webGLUseEmbeddedResources: 0 + webGLCompressionFormat: 0 + webGLWasmArithmeticExceptions: 0 + webGLLinkerTarget: 1 + webGLThreadsSupport: 0 + webGLDecompressionFallback: 0 + webGLPowerPreference: 2 + scriptingDefineSymbols: {} + additionalCompilerArguments: {} + platformArchitecture: {} + scriptingBackend: {} + il2cppCompilerConfiguration: {} + managedStrippingLevel: + EmbeddedLinux: 1 + GameCoreScarlett: 1 + GameCoreXboxOne: 1 + Lumin: 1 + Nintendo Switch: 1 + PS4: 1 + PS5: 1 + Stadia: 1 + WebGL: 1 + Windows Store Apps: 1 + XboxOne: 1 + iPhone: 1 + tvOS: 1 + incrementalIl2cppBuild: {} + suppressCommonWarnings: 1 + allowUnsafeCode: 0 + useDeterministicCompilation: 1 + enableRoslynAnalyzers: 1 + additionalIl2CppArgs: + scriptingRuntimeVersion: 1 + gcIncremental: 1 + assemblyVersionValidation: 1 + gcWBarrierValidation: 0 + apiCompatibilityLevelPerPlatform: {} + m_RenderingPath: 1 + m_MobileRenderingPath: 1 + metroPackageName: 2D_BuiltInRenderer + metroPackageVersion: + metroCertificatePath: + metroCertificatePassword: + metroCertificateSubject: + metroCertificateIssuer: + metroCertificateNotAfter: 0000000000000000 + metroApplicationDescription: 2D_BuiltInRenderer + wsaImages: {} + metroTileShortName: + metroTileShowName: 0 + metroMediumTileShowName: 0 + metroLargeTileShowName: 0 + metroWideTileShowName: 0 + metroSupportStreamingInstall: 0 + metroLastRequiredScene: 0 + metroDefaultTileSize: 1 + metroTileForegroundText: 2 + metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} + metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, a: 1} + metroSplashScreenUseBackgroundColor: 0 + syncCapabilities: 0 + platformCapabilities: {} + metroTargetDeviceFamilies: {} + metroFTAName: + metroFTAFileTypes: [] + metroProtocolName: + vcxProjDefaultLanguage: + XboxOneProductId: + XboxOneUpdateKey: + XboxOneSandboxId: + XboxOneContentId: + XboxOneTitleId: + XboxOneSCId: + XboxOneGameOsOverridePath: + XboxOnePackagingOverridePath: + XboxOneAppManifestOverridePath: + XboxOneVersion: 1.0.0.0 + XboxOnePackageEncryption: 0 + XboxOnePackageUpdateGranularity: 2 + XboxOneDescription: + XboxOneLanguage: + - enus + XboxOneCapability: [] + XboxOneGameRating: {} + XboxOneIsContentPackage: 0 + XboxOneEnhancedXboxCompatibilityMode: 0 + XboxOneEnableGPUVariability: 1 + XboxOneSockets: {} + XboxOneSplashScreen: {fileID: 0} + XboxOneAllowedProductIds: [] + XboxOnePersistentLocalStorageSize: 0 + XboxOneXTitleMemory: 8 + XboxOneOverrideIdentityName: + XboxOneOverrideIdentityPublisher: + vrEditorSettings: {} + cloudServicesEnabled: {} + luminIcon: + m_Name: + m_ModelFolderPath: + m_PortalFolderPath: + luminCert: + m_CertPath: + m_SignPackage: 1 + luminIsChannelApp: 0 + luminVersion: + m_VersionCode: 1 + m_VersionName: + apiCompatibilityLevel: 6 + activeInputHandler: 0 + windowsGamepadBackendHint: 0 + cloudProjectId: + framebufferDepthMemorylessMode: 0 + qualitySettingsNames: [] + projectName: + organizationId: + cloudEnabled: 0 + legacyClampBlendShapeWeights: 0 + playerDataPath: + forceSRGBBlit: 1 + virtualTexturingSupportEnabled: 0 diff --git a/ProjectSettings/ProjectVersion.txt b/ProjectSettings/ProjectVersion.txt new file mode 100644 index 0000000..ff655dd --- /dev/null +++ b/ProjectSettings/ProjectVersion.txt @@ -0,0 +1,2 @@ +m_EditorVersion: 2021.3.38f1 +m_EditorVersionWithRevision: 2021.3.38f1 (7a2fa5d8d101) diff --git a/ProjectSettings/QualitySettings.asset b/ProjectSettings/QualitySettings.asset new file mode 100644 index 0000000..bcd6706 --- /dev/null +++ b/ProjectSettings/QualitySettings.asset @@ -0,0 +1,239 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!47 &1 +QualitySettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_CurrentQuality: 5 + m_QualitySettings: + - serializedVersion: 2 + name: Very Low + pixelLightCount: 0 + shadows: 0 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 15 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 + skinWeights: 1 + textureQuality: 1 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 0 + lodBias: 0.3 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 4 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + customRenderPipeline: {fileID: 0} + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Low + pixelLightCount: 0 + shadows: 0 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 20 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 + skinWeights: 2 + textureQuality: 0 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 0 + lodBias: 0.4 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 16 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + customRenderPipeline: {fileID: 0} + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Medium + pixelLightCount: 1 + shadows: 1 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 20 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 + skinWeights: 2 + textureQuality: 0 + anisotropicTextures: 1 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 1 + lodBias: 0.7 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 64 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + customRenderPipeline: {fileID: 0} + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: High + pixelLightCount: 2 + shadows: 2 + shadowResolution: 1 + shadowProjection: 1 + shadowCascades: 2 + shadowDistance: 40 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 1 + skinWeights: 2 + textureQuality: 0 + anisotropicTextures: 1 + antiAliasing: 0 + softParticles: 0 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 1 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 256 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + customRenderPipeline: {fileID: 0} + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Very High + pixelLightCount: 3 + shadows: 2 + shadowResolution: 2 + shadowProjection: 1 + shadowCascades: 2 + shadowDistance: 70 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 1 + skinWeights: 4 + textureQuality: 0 + anisotropicTextures: 2 + antiAliasing: 2 + softParticles: 1 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 1.5 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 1024 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + customRenderPipeline: {fileID: 0} + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Ultra + pixelLightCount: 4 + shadows: 2 + shadowResolution: 2 + shadowProjection: 1 + shadowCascades: 4 + shadowDistance: 150 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 1 + skinWeights: 255 + textureQuality: 0 + anisotropicTextures: 2 + antiAliasing: 2 + softParticles: 1 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 2 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 4096 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + customRenderPipeline: {fileID: 0} + excludedTargetPlatforms: [] + m_PerPlatformDefaultQuality: + Android: 2 + Lumin: 5 + GameCoreScarlett: 5 + GameCoreXboxOne: 5 + Nintendo Switch: 5 + PS4: 5 + PS5: 5 + Stadia: 5 + Standalone: 5 + WebGL: 3 + Windows Store Apps: 5 + XboxOne: 5 + iPhone: 2 + tvOS: 2 diff --git a/ProjectSettings/SceneTemplateSettings.json b/ProjectSettings/SceneTemplateSettings.json new file mode 100644 index 0000000..5e97f83 --- /dev/null +++ b/ProjectSettings/SceneTemplateSettings.json @@ -0,0 +1,121 @@ +{ + "templatePinStates": [], + "dependencyTypeInfos": [ + { + "userAdded": false, + "type": "UnityEngine.AnimationClip", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEditor.Animations.AnimatorController", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.AnimatorOverrideController", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEditor.Audio.AudioMixerController", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.ComputeShader", + "defaultInstantiationMode": 1 + }, + { + "userAdded": false, + "type": "UnityEngine.Cubemap", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.GameObject", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEditor.LightingDataAsset", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.LightingSettings", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.Material", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEditor.MonoScript", + "defaultInstantiationMode": 1 + }, + { + "userAdded": false, + "type": "UnityEngine.PhysicMaterial", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.PhysicsMaterial2D", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.Rendering.PostProcessing.PostProcessResources", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.Rendering.VolumeProfile", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEditor.SceneAsset", + "defaultInstantiationMode": 1 + }, + { + "userAdded": false, + "type": "UnityEngine.Shader", + "defaultInstantiationMode": 1 + }, + { + "userAdded": false, + "type": "UnityEngine.ShaderVariantCollection", + "defaultInstantiationMode": 1 + }, + { + "userAdded": false, + "type": "UnityEngine.Texture", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.Texture2D", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.Timeline.TimelineAsset", + "defaultInstantiationMode": 0 + } + ], + "defaultDependencyTypeInfo": { + "userAdded": false, + "type": "", + "defaultInstantiationMode": 1 + }, + "newSceneOverride": 0 +} \ No newline at end of file diff --git a/ProjectSettings/TagManager.asset b/ProjectSettings/TagManager.asset new file mode 100644 index 0000000..1c92a78 --- /dev/null +++ b/ProjectSettings/TagManager.asset @@ -0,0 +1,43 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!78 &1 +TagManager: + serializedVersion: 2 + tags: [] + layers: + - Default + - TransparentFX + - Ignore Raycast + - + - Water + - UI + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + m_SortingLayers: + - name: Default + uniqueID: 0 + locked: 0 diff --git a/ProjectSettings/TimeManager.asset b/ProjectSettings/TimeManager.asset new file mode 100644 index 0000000..558a017 --- /dev/null +++ b/ProjectSettings/TimeManager.asset @@ -0,0 +1,9 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!5 &1 +TimeManager: + m_ObjectHideFlags: 0 + Fixed Timestep: 0.02 + Maximum Allowed Timestep: 0.33333334 + m_TimeScale: 1 + Maximum Particle Timestep: 0.03 diff --git a/ProjectSettings/UnityConnectSettings.asset b/ProjectSettings/UnityConnectSettings.asset new file mode 100644 index 0000000..a88bee0 --- /dev/null +++ b/ProjectSettings/UnityConnectSettings.asset @@ -0,0 +1,36 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!310 &1 +UnityConnectSettings: + m_ObjectHideFlags: 0 + serializedVersion: 1 + m_Enabled: 0 + m_TestMode: 0 + m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events + m_EventUrl: https://cdp.cloud.unity3d.com/v1/events + m_ConfigUrl: https://config.uca.cloud.unity3d.com + m_DashboardUrl: https://dashboard.unity3d.com + m_TestInitMode: 0 + CrashReportingSettings: + m_EventUrl: https://perf-events.cloud.unity3d.com + m_Enabled: 0 + m_LogBufferSize: 10 + m_CaptureEditorExceptions: 1 + UnityPurchasingSettings: + m_Enabled: 0 + m_TestMode: 0 + UnityAnalyticsSettings: + m_Enabled: 0 + m_TestMode: 0 + m_InitializeOnStartup: 1 + m_PackageRequiringCoreStatsPresent: 0 + UnityAdsSettings: + m_Enabled: 0 + m_InitializeOnStartup: 1 + m_TestMode: 0 + m_IosGameId: + m_AndroidGameId: + m_GameIds: {} + m_GameId: + PerformanceReportingSettings: + m_Enabled: 0 diff --git a/ProjectSettings/VFXManager.asset b/ProjectSettings/VFXManager.asset new file mode 100644 index 0000000..46f38e1 --- /dev/null +++ b/ProjectSettings/VFXManager.asset @@ -0,0 +1,14 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!937362698 &1 +VFXManager: + m_ObjectHideFlags: 0 + m_IndirectShader: {fileID: 0} + m_CopyBufferShader: {fileID: 0} + m_SortShader: {fileID: 0} + m_StripUpdateShader: {fileID: 0} + m_RenderPipeSettingsPath: + m_FixedTimeStep: 0.016666668 + m_MaxDeltaTime: 0.05 + m_CompiledVersion: 0 + m_RuntimeVersion: 0 diff --git a/ProjectSettings/VersionControlSettings.asset b/ProjectSettings/VersionControlSettings.asset new file mode 100644 index 0000000..dca2881 --- /dev/null +++ b/ProjectSettings/VersionControlSettings.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!890905787 &1 +VersionControlSettings: + m_ObjectHideFlags: 0 + m_Mode: Visible Meta Files + m_CollabEditorSettings: + inProgressEnabled: 1 diff --git a/ProjectSettings/XRSettings.asset b/ProjectSettings/XRSettings.asset new file mode 100644 index 0000000..482590c --- /dev/null +++ b/ProjectSettings/XRSettings.asset @@ -0,0 +1,10 @@ +{ + "m_SettingKeys": [ + "VR Device Disabled", + "VR Device User Alert" + ], + "m_SettingValues": [ + "False", + "False" + ] +} \ No newline at end of file diff --git a/ProjectSettings/boot.config b/ProjectSettings/boot.config new file mode 100644 index 0000000..e69de29 diff --git a/UserSettings/EditorUserSettings.asset b/UserSettings/EditorUserSettings.asset new file mode 100644 index 0000000..66ad829 --- /dev/null +++ b/UserSettings/EditorUserSettings.asset @@ -0,0 +1,28 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!162 &1 +EditorUserSettings: + m_ObjectHideFlags: 0 + serializedVersion: 4 + m_ConfigSettings: + RecentlyUsedSceneGuid-0: + value: 515250075c0c595e5f5a5e71122159444e4e4a2f7a7d7f602f284d66b4b76661 + flags: 0 + vcSharedLogLevel: + value: 0d5e400f0650 + flags: 0 + m_VCAutomaticAdd: 1 + m_VCDebugCom: 0 + m_VCDebugCmd: 0 + m_VCDebugOut: 0 + m_SemanticMergeMode: 2 + m_DesiredImportWorkerCount: 3 + m_StandbyImportWorkerCount: 2 + m_IdleImportWorkerShutdownDelay: 60000 + m_VCShowFailedCheckout: 1 + m_VCOverwriteFailedCheckoutAssets: 1 + m_VCProjectOverlayIcons: 1 + m_VCHierarchyOverlayIcons: 1 + m_VCOtherOverlayIcons: 1 + m_VCAllowAsyncUpdate: 1 + m_ArtifactGarbageCollection: 1 diff --git a/UserSettings/Search.settings b/UserSettings/Search.settings new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/UserSettings/Search.settings @@ -0,0 +1 @@ +{} \ No newline at end of file