joypac文件还原
This commit is contained in:
parent
332ecc8901
commit
5586b0d5c9
|
@ -1,26 +0,0 @@
|
|||
<dependencies>
|
||||
<unityversion>4.3.43</unityversion>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.google.android.gms:play-services-ads:21.3.0">
|
||||
<repositories>
|
||||
<repository>https://maven.google.com/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.ironsource.adapters:admobadapter:4.3.32">
|
||||
<repositories>
|
||||
<repository>https://android-sdk.is.com/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
|
||||
<iosPods>
|
||||
<iosPod name="IronSourceAdMobAdapter" version="4.3.37.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
</iosPod>
|
||||
</iosPods>
|
||||
</dependencies>
|
|
@ -1,24 +0,0 @@
|
|||
<dependencies>
|
||||
<unityversion>4.3.19.1</unityversion>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.ironsource.adapters:pangleadapter:4.3.15">
|
||||
<repositories>
|
||||
<repository>https://android-sdk.is.com/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.pangle.global:ads-sdk:4.7.0.6">
|
||||
<repositories>
|
||||
<repository>https://artifact.bytedance.com/repository/pangle/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
<iosPods>
|
||||
<iosPod name="IronSourcePangleAdapter" version="4.3.16.3">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
</iosPod>
|
||||
</iosPods>
|
||||
</dependencies>
|
|
@ -1,25 +0,0 @@
|
|||
<dependencies>
|
||||
<unityversion>4.3.29</unityversion>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.ironsource.adapters:unityadsadapter:4.3.24">
|
||||
<repositories>
|
||||
<repository>https://android-sdk.is.com/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.unity3d.ads:unity-ads:4.4.1">
|
||||
<repositories>
|
||||
<repository>https://maven.google.com/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
|
||||
<iosPods>
|
||||
<iosPod name="IronSourceUnityAdsAdapter" version="4.3.25.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
</iosPod>
|
||||
</iosPods>
|
||||
</dependencies>
|
|
@ -1,53 +0,0 @@
|
|||
public static class IronSourceDependenciesManagerConstants
|
||||
{
|
||||
internal const string SDK = "sdk";
|
||||
internal const int WIDTH = 760;
|
||||
internal const int HEIGHT = 760;
|
||||
internal const string ANDROID = "Android";
|
||||
internal const string IOS = "iOS";
|
||||
internal const string IRONSOURCE = "ironsource";
|
||||
internal const string NONE = "none";
|
||||
|
||||
//path const
|
||||
internal const string IRONSOURCE_SDK_INFO = "http://ssa.public.s3.amazonaws.com/Integration-Manager/IronSourceSDKInfo.json";
|
||||
internal const string IRONSOURCE_SDK_XML_LINKS = "http://ssa.public.s3.amazonaws.com/Integration-Manager/IronSourceSDKLinks.json";
|
||||
internal const string IRONSOURCE_DOWNLOAD_DIR = "Assets/IronSource/Editor/";
|
||||
internal const string IRONSOURCE_XML = "IronSourceSDKDependencies.xml";
|
||||
internal const string IRONSOURCE_XML_PATH = "dependencies/unityversion";
|
||||
|
||||
|
||||
//xml macro
|
||||
internal const string UNITY_ADAPTER_MACRO = "${UnityAdapterVersion}";
|
||||
|
||||
//jsonInfo keys
|
||||
internal const string LATEST_SDK_VERSION = "latest";
|
||||
internal const string PROVIDER_KEY_NAME = "keyname";
|
||||
internal const string PROVIDER_IS_NEW = "isNewProvider";
|
||||
internal const string PROVIDER_ANDROID_SDK_VER = "AndroidSDKVersion";
|
||||
internal const string PROVIDER_IOS_SDK_VER = "iOSSDKVersion";
|
||||
internal const string PROVIDER_UNITY_ADAPTER_VERSION = "UnityAdapterVersion";
|
||||
|
||||
//jsonlinks keys
|
||||
internal const string PROVIDER_DOWNLOAD_URL = "DownloadUrl";
|
||||
internal const string PROVIDER_FILE_NAME = "FileName";
|
||||
|
||||
//UI constants
|
||||
internal const string UPDATE_MSG = "UpdateMessage";
|
||||
internal const string LATEST_MSG = "LatestMessage";
|
||||
internal const string LABEL_INSTALL = "Install";
|
||||
internal const string LABEL_UPDATE = "Update";
|
||||
internal const string LABEL_UPDATED = "Updated";
|
||||
internal const string LABEL_Action = "Action";
|
||||
internal const string LABEL_NETWORK = "Network";
|
||||
internal const string LABEL_CURRENT_SDK = "Current Adapter Version";
|
||||
internal const string LABEL_LATEST_SDK = "Latest Adapter Version";
|
||||
|
||||
internal const string TOOLTIP_ANDROID_SDK = "Android SDK version";
|
||||
internal const string TOOLTIP_IOS_SDK = "iOS SDK version";
|
||||
internal const string TOOLTIP_LATEST_VERSION = "Latest Version:";
|
||||
internal const string TOOLTIP_ADAPTER_VERSION = "Adapter Version";
|
||||
internal const string NEW_NETWORK = " - New Network";
|
||||
|
||||
internal const string INTERGRATION_MANAGER_TITLE = "ironSource Integration Manager";
|
||||
internal const string ERROR_NOT_AVAILABLE = "SDK and adapters data are not available right now. Try again soon.";
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c85d9064b12ac4d9d84136051d8bab0b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,17 +0,0 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
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: 11500000, guid: 6dcd730eacb2043e8a6f1c61c16243da, type: 3}
|
||||
m_Name: IronSourceMediatedNetworkSettings
|
||||
m_EditorClassIdentifier:
|
||||
EnableAdmob: 1
|
||||
AdmobAndroidAppId: ca-app-pub-8570528999469422~2989950564
|
||||
AdmobIOSAppId: ca-app-pub-8570528999469422~2606807187
|
|
@ -1,21 +0,0 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
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: 11500000, guid: d5a679b8640d04834b4f09b8c6adec7a, type: 3}
|
||||
m_Name: IronSourceMediationSettings
|
||||
m_EditorClassIdentifier:
|
||||
AndroidAppKey: 11bc928bd
|
||||
IOSAppKey: 11bc8b5ad
|
||||
EnableIronsourceSDKInitAPI: 0
|
||||
AddIronsourceSkadnetworkID: 0
|
||||
DeclareAD_IDPermission: 1
|
||||
EnableAdapterDebug: 0
|
||||
EnableIntegrationHelper: 0
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 618ec9f4f671a4ce3997c6419e71e61c
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,8 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a7193265944c74504a788e322ed622ac
|
||||
NativeFormatImporter:
|
||||
guid: e3aefae250b694e4489524e7c70121e1
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 48e8047722e2345158e4a35811a4e7a0
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,132 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &1127298908888811150
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1127298908888811149}
|
||||
- component: {fileID: 1127298908888811137}
|
||||
- component: {fileID: 1127298908888811138}
|
||||
- component: {fileID: 1127298908888811139}
|
||||
- component: {fileID: 1127298908888811148}
|
||||
m_Layer: 5
|
||||
m_Name: FeedBackButton
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1127298908888811149
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1127298908888811150}
|
||||
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_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 848}
|
||||
m_SizeDelta: {x: 153, y: 149}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1127298908888811137
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1127298908888811150}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &1127298908888811138
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1127298908888811150}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Sprite: {fileID: 21300000, guid: 9160c84db22a14c09b7639d9ca0007fc, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!114 &1127298908888811139
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1127298908888811150}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 1127298908888811138}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
--- !u!114 &1127298908888811148
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1127298908888811150}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: e0adf63f0b96141e0ab366ffeb6bf3ec, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
|
@ -1,6 +1,6 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 73dddd4b224724b0caa4ae5aa139d0f3
|
||||
TextScriptImporter:
|
||||
guid: 2da03b9f5561d4108bd55d4984c47f31
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
|
@ -0,0 +1,208 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &5466890874681339646
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5466890874681339647}
|
||||
- component: {fileID: 5466890874681339641}
|
||||
- component: {fileID: 5466890874681339640}
|
||||
m_Layer: 5
|
||||
m_Name: Image
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &5466890874681339647
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5466890874681339646}
|
||||
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_Children: []
|
||||
m_Father: {fileID: 5466890875353275758}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 77, y: 56}
|
||||
m_SizeDelta: {x: 70, y: 70}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &5466890874681339641
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5466890874681339646}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &5466890874681339640
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5466890874681339646}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Sprite: {fileID: 21300000, guid: 3c7594af8797e43ba98c3e0f68a23510, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!1 &5466890875353275757
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5466890875353275758}
|
||||
- component: {fileID: 5466890875353275753}
|
||||
- component: {fileID: 5466890875353275752}
|
||||
- component: {fileID: 5466890875353275759}
|
||||
- component: {fileID: 5466890875353275754}
|
||||
m_Layer: 5
|
||||
m_Name: MoreGameButton
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &5466890875353275758
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5466890875353275757}
|
||||
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_Children:
|
||||
- {fileID: 5466890874681339647}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 364, y: 843}
|
||||
m_SizeDelta: {x: 154.5, y: 132}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &5466890875353275753
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5466890875353275757}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &5466890875353275752
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5466890875353275757}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Sprite: {fileID: 21300000, guid: 97d9ab73e142a4373940d52a5b8ed1af, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!114 &5466890875353275759
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5466890875353275757}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 5466890875353275752}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
--- !u!114 &5466890875353275754
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5466890875353275757}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 6c7c3102d66214810a4efa6bb79ce506, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
red: {fileID: 5466890874681339646}
|
|
@ -1,6 +1,6 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7895e9d9a683d4dc7b9f3accad35a62f
|
||||
TextScriptImporter:
|
||||
guid: 74a7a78e879394178a1941a9d076df74
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
|
@ -0,0 +1,132 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &113652593439005997
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 113652593439005998}
|
||||
- component: {fileID: 113652593439005993}
|
||||
- component: {fileID: 113652593439005992}
|
||||
- component: {fileID: 113652593439005999}
|
||||
- component: {fileID: 113652593439005994}
|
||||
m_Layer: 5
|
||||
m_Name: PrivacyButton
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &113652593439005998
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 113652593439005997}
|
||||
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_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -313, y: 910}
|
||||
m_SizeDelta: {x: 433, y: 68}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &113652593439005993
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 113652593439005997}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &113652593439005992
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 113652593439005997}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Sprite: {fileID: 21300000, guid: 2be5514759f59424da4e02222314648d, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!114 &113652593439005999
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 113652593439005997}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 113652593439005992}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
--- !u!114 &113652593439005994
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 113652593439005997}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ba67c607f983044a5aa826b865c443b3, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
|
@ -1,6 +1,6 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 794e47a8b49814bb8ad839d4d432cebe
|
||||
TextScriptImporter:
|
||||
guid: 9f68deb7bee674cce9d599804276a910
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
|
@ -0,0 +1,483 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &1148314791237050
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 224509910574052300}
|
||||
- component: {fileID: 222108713942203568}
|
||||
- component: {fileID: 114227291194785656}
|
||||
- component: {fileID: 114924560764172026}
|
||||
m_Layer: 5
|
||||
m_Name: FullscreenButton
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &224509910574052300
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1148314791237050}
|
||||
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_Children: []
|
||||
m_Father: {fileID: 224813607251959872}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &222108713942203568
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1148314791237050}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &114227291194785656
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1148314791237050}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.45490196, g: 0.5529412, b: 0.99215686, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!114 &114924560764172026
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1148314791237050}
|
||||
m_Enabled: 0
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 0
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 114227291194785656}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
--- !u!1 &1791491749150278
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 224813607251959872}
|
||||
- component: {fileID: 222541843538763426}
|
||||
- component: {fileID: 223714340601956284}
|
||||
- component: {fileID: 114318320665371604}
|
||||
- component: {fileID: 114354264650741006}
|
||||
- component: {fileID: 150990280416715779}
|
||||
m_Layer: 5
|
||||
m_Name: InterTipPopupView
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &224813607251959872
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1791491749150278}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0, y: 0, z: 0}
|
||||
m_Children:
|
||||
- {fileID: 224509910574052300}
|
||||
- {fileID: 4152000226439444913}
|
||||
- {fileID: 7211422998031998187}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!222 &222541843538763426
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1791491749150278}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!223 &223714340601956284
|
||||
Canvas:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1791491749150278}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_RenderMode: 0
|
||||
m_Camera: {fileID: 0}
|
||||
m_PlaneDistance: 100
|
||||
m_PixelPerfect: 0
|
||||
m_ReceivesEvents: 1
|
||||
m_OverrideSorting: 1
|
||||
m_OverridePixelPerfect: 0
|
||||
m_SortingBucketNormalizedSize: 0
|
||||
m_AdditionalShaderChannelsFlag: 0
|
||||
m_SortingLayerID: 1912043021
|
||||
m_SortingOrder: 0
|
||||
m_TargetDisplay: 0
|
||||
--- !u!114 &114318320665371604
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1791491749150278}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_UiScaleMode: 1
|
||||
m_ReferencePixelsPerUnit: 100
|
||||
m_ScaleFactor: 1
|
||||
m_ReferenceResolution: {x: 1080, y: 1920}
|
||||
m_ScreenMatchMode: 0
|
||||
m_MatchWidthOrHeight: 0
|
||||
m_PhysicalUnit: 3
|
||||
m_FallbackScreenDPI: 96
|
||||
m_DefaultSpriteDPI: 96
|
||||
m_DynamicPixelsPerUnit: 1
|
||||
--- !u!114 &114354264650741006
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1791491749150278}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IgnoreReversedGraphics: 1
|
||||
m_BlockingObjects: 0
|
||||
m_BlockingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
--- !u!114 &150990280416715779
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1791491749150278}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 84dc0eb2ceb1645f292c334b9a82dfcb, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &3484690053600738937
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4152000226439444913}
|
||||
- component: {fileID: 8977365272845778299}
|
||||
- component: {fileID: 380129087898370636}
|
||||
- component: {fileID: 3987909399952447494}
|
||||
m_Layer: 5
|
||||
m_Name: Image
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &4152000226439444913
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3484690053600738937}
|
||||
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_Children: []
|
||||
m_Father: {fileID: 224813607251959872}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 378}
|
||||
m_SizeDelta: {x: 353.1, y: 434.5}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8977365272845778299
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3484690053600738937}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &380129087898370636
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3484690053600738937}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Sprite: {fileID: 21300000, guid: 34634f7d1367c40368f88006469575e0, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!114 &3987909399952447494
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3484690053600738937}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 295943c2dbc5e4dcd8748e48b01f0d9f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
UIArray:
|
||||
- {fileID: 21300000, guid: 34634f7d1367c40368f88006469575e0, type: 3}
|
||||
- {fileID: 21300000, guid: 89e826b62bf93492d904aff4122213a7, type: 3}
|
||||
- {fileID: 21300000, guid: b0ac91240162b495a869abbaa4c760a4, type: 3}
|
||||
- {fileID: 21300000, guid: 79b3e47b915ed47219ab746fec9ecb22, type: 3}
|
||||
- {fileID: 21300000, guid: e28e73242699149a6a9226357fa81c63, type: 3}
|
||||
- {fileID: 21300000, guid: 66e16482119ba4d29b30e16888960b63, type: 3}
|
||||
- {fileID: 21300000, guid: 6e7efd78d705d4a1e8a60bececc36f69, type: 3}
|
||||
- {fileID: 21300000, guid: 4644a9b18cb474453a2c9c5954b17974, type: 3}
|
||||
- {fileID: 21300000, guid: 06b985db5021245788a41c034fc4608e, type: 3}
|
||||
- {fileID: 21300000, guid: 987096a7b78364d84a2f3bc6e81f1461, type: 3}
|
||||
- {fileID: 21300000, guid: 191a730df8d924abdaf72b301d33f9c5, type: 3}
|
||||
- {fileID: 21300000, guid: e12df7a123564400b9c9523f1283a550, type: 3}
|
||||
- {fileID: 21300000, guid: f05d9c59248b042c7a194a1a820c0688, type: 3}
|
||||
- {fileID: 21300000, guid: ee2847215a1474866a24012b93a6d3af, type: 3}
|
||||
- {fileID: 21300000, guid: 03c71dc807e5f41feb1bf1e1816394e4, type: 3}
|
||||
Loop: 1
|
||||
playSpeed: 22
|
||||
--- !u!1 &8644960602270062144
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7211422998031998187}
|
||||
- component: {fileID: 8471019761486920880}
|
||||
- component: {fileID: 4329384940363051783}
|
||||
- component: {fileID: 196346364654536067}
|
||||
- component: {fileID: 1239164057824820567}
|
||||
m_Layer: 5
|
||||
m_Name: Text
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &7211422998031998187
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8644960602270062144}
|
||||
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_Children: []
|
||||
m_Father: {fileID: 224813607251959872}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: -75}
|
||||
m_SizeDelta: {x: 1000, y: 300}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8471019761486920880
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8644960602270062144}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &4329384940363051783
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8644960602270062144}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 120
|
||||
m_FontStyle: 1
|
||||
m_BestFit: 1
|
||||
m_MinSize: 1
|
||||
m_MaxSize: 120
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1.2
|
||||
m_Text: "\u8D5E\u52A9\u5546\u5E7F\u544A\n5\u79D2\u540E\u53EF\u5173\u95ED"
|
||||
--- !u!114 &196346364654536067
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8644960602270062144}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1573420865, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_EffectColor: {r: 0, g: 0, b: 0, a: 0.7137255}
|
||||
m_EffectDistance: {x: 6, y: -6}
|
||||
m_UseGraphicAlpha: 1
|
||||
--- !u!114 &1239164057824820567
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8644960602270062144}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 344445a89b4f74a0e9a0a766903df87e, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
mTerm: interTip
|
||||
mTermSecondary:
|
||||
PrimaryTermModifier: 0
|
||||
SecondaryTermModifier: 0
|
||||
TermPrefix:
|
||||
TermSuffix:
|
||||
LocalizeOnAwake: 1
|
||||
IgnoreRTL: 0
|
||||
MaxCharactersInRTL: 0
|
||||
IgnoreNumbersInRTL: 1
|
||||
CorrectAlignmentForRTL: 1
|
||||
AddSpacesToJoinedLanguages: 0
|
||||
AllowLocalizedParameters: 1
|
||||
TranslatedObjects: []
|
||||
LocalizeEvent:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.Events.UnityEvent, UnityEngine.CoreModule, Version=0.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
AlwaysForceLocalize: 0
|
||||
LocalizeCallBack:
|
||||
Target: {fileID: 0}
|
||||
MethodName:
|
||||
mGUI_ShowReferences: 0
|
||||
mGUI_ShowTems: 1
|
||||
mGUI_ShowCallback: 0
|
||||
mLocalizeTarget: {fileID: 0}
|
||||
mLocalizeTargetName: I2.Loc.LocalizeTarget_UnityUI_Text
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b0e7c4095ef9043859c3525a9c05b972
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,45 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &2105953405643639822
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2105953405643639821}
|
||||
- component: {fileID: 2105953405643639820}
|
||||
m_Layer: 0
|
||||
m_Name: JoypacManager
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &2105953405643639821
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2105953405643639822}
|
||||
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_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &2105953405643639820
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2105953405643639822}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: e0638cddb10fb475abb6b618babadaa0, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9be0e7dcab12d4e9f8878dd9e5ccd2eb
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,212 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &1791491749150278
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 224813607251959872}
|
||||
- component: {fileID: 223714340601956284}
|
||||
- component: {fileID: 7994497146982812018}
|
||||
- component: {fileID: 2688680241038248006}
|
||||
m_Layer: 5
|
||||
m_Name: NativeAdPanel
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &224813607251959872
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1791491749150278}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0, y: 0, z: 0}
|
||||
m_Children:
|
||||
- {fileID: 6125676207636098490}
|
||||
- {fileID: 7228252973360874772}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!223 &223714340601956284
|
||||
Canvas:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1791491749150278}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_RenderMode: 1
|
||||
m_Camera: {fileID: 0}
|
||||
m_PlaneDistance: 100
|
||||
m_PixelPerfect: 0
|
||||
m_ReceivesEvents: 1
|
||||
m_OverrideSorting: 1
|
||||
m_OverridePixelPerfect: 0
|
||||
m_SortingBucketNormalizedSize: 0
|
||||
m_AdditionalShaderChannelsFlag: 0
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 1
|
||||
m_TargetDisplay: 0
|
||||
--- !u!114 &7994497146982812018
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1791491749150278}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IgnoreReversedGraphics: 1
|
||||
m_BlockingObjects: 0
|
||||
m_BlockingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
--- !u!114 &2688680241038248006
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1791491749150278}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f854d82199dd3454faeefde2e230ed33, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
nativeAd: {fileID: 956944328021132353}
|
||||
canvas: {fileID: 223714340601956284}
|
||||
--- !u!1 &956944328021132353
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7228252973360874772}
|
||||
- component: {fileID: 8637714703287362868}
|
||||
- component: {fileID: 89564169397319473}
|
||||
m_Layer: 5
|
||||
m_Name: NativeAd
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &7228252973360874772
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 956944328021132353}
|
||||
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_Children: []
|
||||
m_Father: {fileID: 224813607251959872}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: -350}
|
||||
m_SizeDelta: {x: -80, y: -1100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8637714703287362868
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 956944328021132353}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &89564169397319473
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 956944328021132353}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.36058205, g: 0.6886792, b: 0.64353997, a: 0.3137255}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Sprite: {fileID: 10911, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!1 &5468134950755947512
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6125676207636098490}
|
||||
- component: {fileID: 7184615036828173778}
|
||||
m_Layer: 5
|
||||
m_Name: Text
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
--- !u!224 &6125676207636098490
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5468134950755947512}
|
||||
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_Children: []
|
||||
m_Father: {fileID: 224813607251959872}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0.000061035156, y: 0.000061035156}
|
||||
m_SizeDelta: {x: 160, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7184615036828173778
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5468134950755947512}
|
||||
m_CullTransparentMesh: 0
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 51ad10141c1154beea2ef14fcd6cb22e
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,342 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &1148314791237050
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 224509910574052300}
|
||||
- component: {fileID: 222108713942203568}
|
||||
- component: {fileID: 2585025525446144173}
|
||||
- component: {fileID: 305232353643775296}
|
||||
m_Layer: 5
|
||||
m_Name: FullscreenButton
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &224509910574052300
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1148314791237050}
|
||||
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_Children: []
|
||||
m_Father: {fileID: 224813607251959872}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 20, y: 20}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &222108713942203568
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1148314791237050}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &2585025525446144173
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1148314791237050}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 305232353643775296}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
--- !u!114 &305232353643775296
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1148314791237050}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0, b: 0, a: 0.13725491}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!1 &1791491749150278
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 224813607251959872}
|
||||
- component: {fileID: 223714340601956284}
|
||||
- component: {fileID: 2630276886976962762}
|
||||
- component: {fileID: 7994497146982812018}
|
||||
m_Layer: 5
|
||||
m_Name: PopLoadingView
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &224813607251959872
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1791491749150278}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0, y: 0, z: 0}
|
||||
m_Children:
|
||||
- {fileID: 224509910574052300}
|
||||
- {fileID: 6125676207636098490}
|
||||
- {fileID: 7228252973360874772}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!223 &223714340601956284
|
||||
Canvas:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1791491749150278}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_RenderMode: 0
|
||||
m_Camera: {fileID: 0}
|
||||
m_PlaneDistance: 100
|
||||
m_PixelPerfect: 0
|
||||
m_ReceivesEvents: 1
|
||||
m_OverrideSorting: 1
|
||||
m_OverridePixelPerfect: 0
|
||||
m_SortingBucketNormalizedSize: 0
|
||||
m_AdditionalShaderChannelsFlag: 0
|
||||
m_SortingLayerID: 1912043021
|
||||
m_SortingOrder: 100
|
||||
m_TargetDisplay: 0
|
||||
--- !u!114 &2630276886976962762
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1791491749150278}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9f01260941cbe42139aba3abbc2ed499, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!114 &7994497146982812018
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1791491749150278}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IgnoreReversedGraphics: 1
|
||||
m_BlockingObjects: 0
|
||||
m_BlockingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
--- !u!1 &956944328021132353
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7228252973360874772}
|
||||
- component: {fileID: 8637714703287362868}
|
||||
- component: {fileID: 89564169397319473}
|
||||
- component: {fileID: 1594125590981810194}
|
||||
m_Layer: 5
|
||||
m_Name: Image
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &7228252973360874772
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 956944328021132353}
|
||||
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_Children: []
|
||||
m_Father: {fileID: 224813607251959872}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 320, y: 240}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8637714703287362868
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 956944328021132353}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &89564169397319473
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 956944328021132353}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Sprite: {fileID: 21300000, guid: 76210063bbc404b81afcc54e46c81bcd, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!114 &1594125590981810194
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 956944328021132353}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 1cc4bfb01e44645bba4a81465dcd44a7, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
speed: 2
|
||||
--- !u!1 &5468134950755947512
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6125676207636098490}
|
||||
- component: {fileID: 7184615036828173778}
|
||||
m_Layer: 5
|
||||
m_Name: Text
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
--- !u!224 &6125676207636098490
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5468134950755947512}
|
||||
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_Children: []
|
||||
m_Father: {fileID: 224813607251959872}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0.000061035156, y: 0.000061035156}
|
||||
m_SizeDelta: {x: 160, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7184615036828173778
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5468134950755947512}
|
||||
m_CullTransparentMesh: 0
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f069bd1f588d84f52954aed16e7478d8
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a938383a295a24cb5b09a32609f04978
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d3e4eb3851ff24886b2db57d26f23367
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3a6f00331756746d1975e7fdd7284de1
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,17 +0,0 @@
|
|||
using System;
|
||||
public interface IUnityBanner
|
||||
{
|
||||
|
||||
event Action OnBannerAdLoaded;
|
||||
|
||||
event Action OnBannerAdLeftApplication;
|
||||
|
||||
event Action OnBannerAdScreenDismissed;
|
||||
|
||||
event Action OnBannerAdScreenPresented;
|
||||
|
||||
event Action OnBannerAdClicked;
|
||||
|
||||
event Action<IronSourceError> OnBannerAdLoadFailed;
|
||||
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 22ddf318a52104d778e24c967214fb97
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,7 +0,0 @@
|
|||
using System;
|
||||
public interface IUnityImpressionData
|
||||
{
|
||||
event Action<IronSourceImpressionData> OnImpressionDataReady;
|
||||
|
||||
event Action<IronSourceImpressionData> OnImpressionSuccess;
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 209ebba8acaaa405ab638b7dd98eeb71
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,5 +0,0 @@
|
|||
using System;
|
||||
public interface IUnityInitialization
|
||||
{
|
||||
event Action OnSdkInitializationCompletedEvent;
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7da4225f530d04e7192c08dcd44a3014
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,36 +0,0 @@
|
|||
using System;
|
||||
|
||||
public interface IUnityInterstitial
|
||||
{
|
||||
//Mediation Interstitial callbacks
|
||||
event Action<IronSourceError> OnInterstitialAdShowFailed;
|
||||
|
||||
event Action<IronSourceError> OnInterstitialAdLoadFailed;
|
||||
|
||||
event Action OnInterstitialAdReady;
|
||||
|
||||
event Action OnInterstitialAdOpened;
|
||||
|
||||
event Action OnInterstitialAdClosed;
|
||||
|
||||
event Action OnInterstitialAdShowSucceeded;
|
||||
|
||||
event Action OnInterstitialAdClicked;
|
||||
|
||||
//Rewarded Interstitial callback
|
||||
event Action OnInterstitialAdRewarded;
|
||||
|
||||
//Demand Only Interstitial callbacks
|
||||
event Action<String> OnInterstitialAdReadyDemandOnly;
|
||||
|
||||
event Action<String> OnInterstitialAdOpenedDemandOnly;
|
||||
|
||||
event Action<String> OnInterstitialAdClosedDemandOnly;
|
||||
|
||||
event Action<String, IronSourceError> OnInterstitialAdLoadFailedDemandOnly;
|
||||
|
||||
event Action<String> OnInterstitialAdClickedDemandOnly;
|
||||
|
||||
event Action<String, IronSourceError> OnInterstitialAdShowFailedDemandOnly;
|
||||
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 332e694ee51c7474eb6e2420e38a89b8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,15 +0,0 @@
|
|||
using System;
|
||||
public interface IUnityLevelPlayBanner
|
||||
{
|
||||
event Action<IronSourceAdInfo> OnAdLoaded;
|
||||
|
||||
event Action<IronSourceAdInfo> OnAdLeftApplication;
|
||||
|
||||
event Action<IronSourceAdInfo> OnAdScreenDismissed;
|
||||
|
||||
event Action<IronSourceAdInfo> OnAdScreenPresented;
|
||||
|
||||
event Action<IronSourceAdInfo> OnAdClicked;
|
||||
|
||||
event Action<IronSourceError> OnAdLoadFailed;
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 56ee964232b484198ae1ba6c87efd2a7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,18 +0,0 @@
|
|||
using System;
|
||||
public interface IUnityLevelPlayInterstitial
|
||||
{
|
||||
//Mediation Interstitial callbacks
|
||||
event Action<IronSourceError, IronSourceAdInfo> OnAdShowFailed;
|
||||
|
||||
event Action<IronSourceError> OnAdLoadFailed;
|
||||
|
||||
event Action<IronSourceAdInfo> OnAdReady;
|
||||
|
||||
event Action<IronSourceAdInfo> OnAdOpened;
|
||||
|
||||
event Action<IronSourceAdInfo> OnAdClosed;
|
||||
|
||||
event Action<IronSourceAdInfo> OnAdShowSucceeded;
|
||||
|
||||
event Action<IronSourceAdInfo> OnAdClicked;
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 803961078a5484380ba93fe7ecd072f0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,17 +0,0 @@
|
|||
using System;
|
||||
public interface IUnityLevelPlayRewardedVideo
|
||||
{
|
||||
event Action<IronSourceError, IronSourceAdInfo> OnAdShowFailed;
|
||||
|
||||
event Action<IronSourceAdInfo> OnAdOpened;
|
||||
|
||||
event Action<IronSourceAdInfo> OnAdClosed;
|
||||
|
||||
event Action<IronSourcePlacement, IronSourceAdInfo> OnAdRewarded;
|
||||
|
||||
event Action<IronSourcePlacement, IronSourceAdInfo> OnAdClicked;
|
||||
|
||||
event Action<IronSourceAdInfo> OnAdAvailable;
|
||||
|
||||
event Action OnAdUnavailable;
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2b659f835808a4c6dba0176524e776f6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,7 +0,0 @@
|
|||
using System;
|
||||
public interface IUnityLevelPlayRewardedVideoManual
|
||||
{
|
||||
event Action<IronSourceAdInfo> OnAdReady;
|
||||
|
||||
event Action<IronSourceError> OnAdLoadFailed;
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: cdfc831d01bba4096af9b9a4650f1045
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,19 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public interface IUnityOfferwall
|
||||
{
|
||||
|
||||
event Action<IronSourceError> OnOfferwallShowFailed;
|
||||
|
||||
event Action OnOfferwallOpened;
|
||||
|
||||
event Action OnOfferwallClosed;
|
||||
|
||||
event Action<IronSourceError> OnGetOfferwallCreditsFailed;
|
||||
|
||||
event Action<Dictionary<string, object>> OnOfferwallAdCredited;
|
||||
|
||||
event Action<bool> OnOfferwallAvailable;
|
||||
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 733f7c3ac6fac4feb9574d142fd38a06
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,38 +0,0 @@
|
|||
using System;
|
||||
|
||||
public interface IUnityRewardedVideo
|
||||
{
|
||||
//Rewarded Video mediation callbacks
|
||||
event Action<IronSourceError> OnRewardedVideoAdShowFailed;
|
||||
|
||||
event Action OnRewardedVideoAdOpened;
|
||||
|
||||
event Action OnRewardedVideoAdClosed;
|
||||
|
||||
event Action OnRewardedVideoAdStarted;
|
||||
|
||||
event Action OnRewardedVideoAdEnded;
|
||||
|
||||
event Action<IronSourcePlacement> OnRewardedVideoAdRewarded;
|
||||
|
||||
event Action<IronSourcePlacement> OnRewardedVideoAdClicked;
|
||||
|
||||
event Action<bool> OnRewardedVideoAvailabilityChanged;
|
||||
|
||||
//Rewarded Video Demand Only callbacks
|
||||
|
||||
event Action<String> OnRewardedVideoAdOpenedDemandOnlyEvent;
|
||||
|
||||
event Action<String> OnRewardedVideoAdClosedDemandOnlyEvent;
|
||||
|
||||
event Action<String> OnRewardedVideoAdLoadedDemandOnlyEvent;
|
||||
|
||||
event Action<String> OnRewardedVideoAdRewardedDemandOnlyEvent;
|
||||
|
||||
event Action<String, IronSourceError> OnRewardedVideoAdShowFailedDemandOnlyEvent;
|
||||
|
||||
event Action<String> OnRewardedVideoAdClickedDemandOnlyEvent;
|
||||
|
||||
event Action<String, IronSourceError> OnRewardedVideoAdLoadFailedDemandOnlyEvent;
|
||||
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9b079af54228d4a418d2756cf58d82c7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,9 +0,0 @@
|
|||
using System;
|
||||
|
||||
public interface IUnityRewardedVideoManual
|
||||
{
|
||||
event Action OnRewardedVideoAdReady;
|
||||
|
||||
event Action<IronSourceError> OnRewardedVideoAdLoadFailed;
|
||||
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 28f813819f39f45e293be84dea1cb28c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,6 +0,0 @@
|
|||
using System;
|
||||
|
||||
public interface IUnitySegment
|
||||
{
|
||||
event Action<String> OnSegmentRecieved;
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4e9020dfb85d24757bc4707028e183f2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,117 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using UnityEngine;
|
||||
|
||||
public class IronSourceAdInfo
|
||||
{
|
||||
|
||||
public readonly string auctionId;
|
||||
public readonly string adUnit;
|
||||
public readonly string country;
|
||||
public readonly string ab;
|
||||
public readonly string segmentName;
|
||||
public readonly string adNetwork;
|
||||
public readonly string instanceName;
|
||||
public readonly string instanceId;
|
||||
public readonly double? revenue;
|
||||
public readonly string precision;
|
||||
public readonly double? lifetimeRevenue;
|
||||
public readonly string encryptedCPM;
|
||||
|
||||
|
||||
|
||||
|
||||
public IronSourceAdInfo(string json)
|
||||
{
|
||||
if (json != null && json != IronSourceConstants.EMPTY_STRING)
|
||||
{
|
||||
try
|
||||
{
|
||||
object obj;
|
||||
double parsedDouble;
|
||||
|
||||
|
||||
// Retrieve a CultureInfo object.
|
||||
CultureInfo invCulture = CultureInfo.InvariantCulture;
|
||||
Dictionary<string, object> jsonDic = IronSourceJSON.Json.Deserialize(json) as Dictionary<string, object>;
|
||||
if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_AUCTION_ID, out obj) && obj != null)
|
||||
{
|
||||
auctionId = obj.ToString();
|
||||
}
|
||||
if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_AD_UNIT, out obj) && obj != null)
|
||||
{
|
||||
adUnit = obj.ToString();
|
||||
}
|
||||
if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_COUNTRY, out obj) && obj != null)
|
||||
{
|
||||
country = obj.ToString();
|
||||
}
|
||||
if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_ABTEST, out obj) && obj != null)
|
||||
{
|
||||
ab = obj.ToString();
|
||||
}
|
||||
if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_SEGMENT_NAME, out obj) && obj != null)
|
||||
{
|
||||
segmentName = obj.ToString();
|
||||
}
|
||||
if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_AD_NETWORK, out obj) && obj != null)
|
||||
{
|
||||
adNetwork = obj.ToString();
|
||||
}
|
||||
if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_INSTANCE_NAME, out obj) && obj != null)
|
||||
{
|
||||
instanceName = obj.ToString();
|
||||
}
|
||||
if (jsonDic.TryGetValue(IronSourceConstants.INSTANCE_ID_KEY, out obj) && obj != null)
|
||||
{
|
||||
instanceId = obj.ToString();
|
||||
}
|
||||
if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_PRECISION, out obj) && obj != null)
|
||||
{
|
||||
precision = obj.ToString();
|
||||
}
|
||||
if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_ENCRYPTED_CPM, out obj) && obj != null)
|
||||
{
|
||||
encryptedCPM = obj.ToString();
|
||||
}
|
||||
|
||||
if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_REVENUE, out obj) && obj != null && double.TryParse(string.Format(invCulture, "{0}", obj), NumberStyles.Any, invCulture, out parsedDouble))
|
||||
{
|
||||
revenue = parsedDouble;
|
||||
}
|
||||
|
||||
if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_LIFETIME_REVENUE, out obj) && obj != null && double.TryParse(string.Format(invCulture, "{0}", obj), NumberStyles.Any, invCulture, out parsedDouble))
|
||||
{
|
||||
lifetimeRevenue = parsedDouble;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Debug.Log("error parsing ad info " + ex.ToString());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "IronSourceAdInfo {" +
|
||||
"auctionId='" + auctionId + '\'' +
|
||||
", adUnit='" + adUnit + '\'' +
|
||||
", country='" + country + '\'' +
|
||||
", ab='" + ab + '\'' +
|
||||
", segmentName='" + segmentName + '\'' +
|
||||
", adNetwork='" + adNetwork + '\'' +
|
||||
", instanceName='" + instanceName + '\'' +
|
||||
", instanceId='" + instanceId + '\'' +
|
||||
", revenue=" + revenue +
|
||||
", precision='" + precision + '\'' +
|
||||
", lifetimeRevenue=" + lifetimeRevenue +
|
||||
", encryptedCPM='" + encryptedCPM + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a0bbe1eafd47944d39a91323c0c60f3b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,79 +0,0 @@
|
|||
#if UNITY_ANDROID
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public class IronSourceBannerAndroid : AndroidJavaProxy, IUnityBanner
|
||||
{
|
||||
|
||||
public event Action OnBannerAdLoaded = delegate { };
|
||||
public event Action OnBannerAdLeftApplication = delegate { };
|
||||
public event Action OnBannerAdScreenDismissed = delegate { };
|
||||
public event Action OnBannerAdScreenPresented = delegate { };
|
||||
public event Action OnBannerAdClicked = delegate { };
|
||||
public event Action<IronSourceError> OnBannerAdLoadFailed = delegate { };
|
||||
|
||||
//implements UnityInterstitialListener java interface and implement banner callbacks
|
||||
public IronSourceBannerAndroid() : base(IronSourceConstants.bannerBridgeListenerClass)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (var pluginClass = new AndroidJavaClass(IronSourceConstants.bridgeClass))
|
||||
{
|
||||
var bridgeInstance = pluginClass.CallStatic<AndroidJavaObject>("getInstance");
|
||||
bridgeInstance.Call("setUnityBannerListener", this);
|
||||
}
|
||||
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
Debug.LogError("setUnityBannerListener method doesn't exist, error: " + e.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onBannerAdLoaded()
|
||||
{
|
||||
if (OnBannerAdLoaded != null)
|
||||
{
|
||||
OnBannerAdLoaded();
|
||||
}
|
||||
|
||||
}
|
||||
void onBannerAdLoadFailed(String args)
|
||||
{
|
||||
if (OnBannerAdLoadFailed != null)
|
||||
{
|
||||
IronSourceError error = IronSourceUtils.getErrorFromErrorObject(args);
|
||||
OnBannerAdLoadFailed(error);
|
||||
}
|
||||
}
|
||||
void onBannerAdClicked()
|
||||
{
|
||||
if (OnBannerAdClicked != null)
|
||||
{
|
||||
OnBannerAdClicked();
|
||||
}
|
||||
}
|
||||
void onBannerAdScreenPresented()
|
||||
{
|
||||
if (OnBannerAdScreenPresented != null)
|
||||
{
|
||||
OnBannerAdScreenPresented();
|
||||
}
|
||||
}
|
||||
void onBannerAdScreenDismissed()
|
||||
{
|
||||
if (OnBannerAdScreenDismissed != null)
|
||||
{
|
||||
OnBannerAdScreenDismissed();
|
||||
}
|
||||
}
|
||||
void onBannerAdLeftApplication()
|
||||
{
|
||||
if (OnBannerAdLeftApplication != null)
|
||||
{
|
||||
OnBannerAdLeftApplication();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7384ed0263ed04b658525533e99962ac
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,352 +0,0 @@
|
|||
using UnityEngine;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
|
||||
public class IronSourceBannerEvents : MonoBehaviour
|
||||
{
|
||||
|
||||
#if UNITY_ANDROID
|
||||
public static event Action<IronSourceAdInfo> onAdLoadedEvent;
|
||||
public static event Action<IronSourceAdInfo> onAdLeftApplicationEvent;
|
||||
public static event Action<IronSourceAdInfo> onAdScreenDismissedEvent;
|
||||
public static event Action<IronSourceAdInfo> onAdScreenPresentedEvent;
|
||||
public static event Action<IronSourceAdInfo> onAdClickedEvent;
|
||||
public static event Action<IronSourceError> onAdLoadFailedEvent;
|
||||
#endif
|
||||
|
||||
#if UNITY_ANDROID
|
||||
private IUnityLevelPlayBanner LevelPlaybannerAndroid;
|
||||
#endif
|
||||
|
||||
void Awake()
|
||||
{
|
||||
#if UNITY_ANDROID && !UNITY_EDITOR
|
||||
LevelPlaybannerAndroid = new IronSourceBannerLevelPlayAndroid();//sets this.bannerAndroid as listener for Banner(Mediation Only) events in the bridge
|
||||
registerBannerEvents();//subscribe to Banner events from this.bannerAndroid
|
||||
|
||||
#endif
|
||||
|
||||
gameObject.name = "IronSourceBannerEvents"; //Change the GameObject name to IronSourceEvents.
|
||||
DontDestroyOnLoad(gameObject); //Makes the object not be destroyed automatically when loading a new scene.
|
||||
}
|
||||
|
||||
#if UNITY_ANDROID && !UNITY_EDITOR
|
||||
|
||||
private void registerBannerEvents()
|
||||
{
|
||||
LevelPlaybannerAndroid.OnAdLoaded += (IronSourceAdInfo) =>
|
||||
{
|
||||
if (onAdLoadedEvent!= null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdLoadedEvent?.Invoke(IronSourceAdInfo);
|
||||
});
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
LevelPlaybannerAndroid.OnAdClicked += (IronSourceAdInfo) =>
|
||||
{
|
||||
if (onAdClickedEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdClickedEvent?.Invoke(IronSourceAdInfo);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
LevelPlaybannerAndroid.OnAdLoadFailed += (ironSourceError) =>
|
||||
{
|
||||
if (onAdLoadFailedEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdLoadFailedEvent?.Invoke(ironSourceError);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
LevelPlaybannerAndroid.OnAdLeftApplication += (IronSourceAdInfo) =>
|
||||
{
|
||||
if (onAdLeftApplicationEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdLeftApplicationEvent?.Invoke(IronSourceAdInfo);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
LevelPlaybannerAndroid.OnAdScreenDismissed += (IronSourceAdInfo) =>
|
||||
{
|
||||
if (onAdScreenDismissedEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdScreenDismissedEvent?.Invoke(IronSourceAdInfo);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
LevelPlaybannerAndroid.OnAdScreenPresented += (IronSourceAdInfo) =>
|
||||
{
|
||||
if (onAdScreenPresentedEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdScreenPresentedEvent?.Invoke(IronSourceAdInfo);
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#if !UNITY_ANDROID
|
||||
|
||||
// ******************************* Banner Events *******************************
|
||||
private static event Action<IronSourceAdInfo> _onAdLoadedEvent;
|
||||
|
||||
public static event Action<IronSourceAdInfo> onAdLoadedEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdLoadedEvent
|
||||
== null || !_onAdLoadedEvent
|
||||
.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdLoadedEvent
|
||||
+= value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdLoadedEvent
|
||||
!= null || _onAdLoadedEvent
|
||||
.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdLoadedEvent
|
||||
-= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdLoaded(string args)
|
||||
{
|
||||
if (_onAdLoadedEvent != null) {
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(args);
|
||||
_onAdLoadedEvent(adInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static event Action<IronSourceError> _onAdLoadFailedEvent;
|
||||
|
||||
public static event Action<IronSourceError> onAdLoadFailedEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdLoadFailedEvent == null || !_onAdLoadFailedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdLoadFailedEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdLoadFailedEvent != null || _onAdLoadFailedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdLoadFailedEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdLoadFailed(string description)
|
||||
{
|
||||
if (_onAdLoadFailedEvent != null)
|
||||
{
|
||||
IronSourceError sse = getErrorFromErrorObject(description);
|
||||
_onAdLoadFailedEvent(sse);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static event Action<IronSourceAdInfo> _onAdClickedEvent;
|
||||
|
||||
public static event Action<IronSourceAdInfo> onAdClickedEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdClickedEvent == null || !_onAdClickedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdClickedEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdClickedEvent != null || _onAdClickedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdClickedEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdClicked(string args)
|
||||
{
|
||||
if (_onAdClickedEvent != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(args);
|
||||
_onAdClickedEvent(adInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static event Action<IronSourceAdInfo> _onAdScreenPresentedEvent;
|
||||
|
||||
public static event Action<IronSourceAdInfo> onAdScreenPresentedEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdScreenPresentedEvent == null || !_onAdScreenPresentedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdScreenPresentedEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdScreenPresentedEvent != null || _onAdScreenPresentedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdScreenPresentedEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdScreenPresented(string args)
|
||||
{
|
||||
if (_onAdScreenPresentedEvent != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(args);
|
||||
_onAdScreenPresentedEvent(adInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static event Action<IronSourceAdInfo> _onAdScreenDismissedEvent;
|
||||
|
||||
public static event Action<IronSourceAdInfo> onAdScreenDismissedEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdScreenDismissedEvent == null || !_onAdScreenDismissedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdScreenDismissedEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdScreenDismissedEvent != null || _onAdScreenDismissedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdScreenDismissedEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdScreenDismissed(string args)
|
||||
{
|
||||
if (_onAdScreenDismissedEvent != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(args);
|
||||
_onAdScreenDismissedEvent(adInfo);
|
||||
}
|
||||
}
|
||||
|
||||
private static event Action<IronSourceAdInfo> _onAdLeftApplicationEvent;
|
||||
|
||||
public static event Action<IronSourceAdInfo> onAdLeftApplicationEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdLeftApplicationEvent == null || !_onAdLeftApplicationEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdLeftApplicationEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdLeftApplicationEvent != null || _onAdLeftApplicationEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdLeftApplicationEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdLeftApplication(string args)
|
||||
{
|
||||
if (_onAdLeftApplicationEvent != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(args);
|
||||
_onAdLeftApplicationEvent(adInfo);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// ******************************* Helper methods *******************************
|
||||
|
||||
private IronSourceError getErrorFromErrorObject(object descriptionObject)
|
||||
{
|
||||
Dictionary<string, object> error = null;
|
||||
if (descriptionObject is IDictionary)
|
||||
{
|
||||
error = descriptionObject as Dictionary<string, object>;
|
||||
}
|
||||
else if (descriptionObject is String && !String.IsNullOrEmpty(descriptionObject.ToString()))
|
||||
{
|
||||
error = IronSourceJSON.Json.Deserialize(descriptionObject.ToString()) as Dictionary<string, object>;
|
||||
}
|
||||
|
||||
IronSourceError sse = new IronSourceError(-1, "");
|
||||
if (error != null && error.Count > 0)
|
||||
{
|
||||
int eCode = Convert.ToInt32(error[IronSourceConstants.ERROR_CODE].ToString());
|
||||
string eDescription = error[IronSourceConstants.ERROR_DESCRIPTION].ToString();
|
||||
sse = new IronSourceError(eCode, eDescription);
|
||||
}
|
||||
|
||||
return sse;
|
||||
}
|
||||
|
||||
private IronSourcePlacement getPlacementFromObject(object placementObject)
|
||||
{
|
||||
Dictionary<string, object> placementJSON = null;
|
||||
if (placementObject is IDictionary)
|
||||
{
|
||||
placementJSON = placementObject as Dictionary<string, object>;
|
||||
}
|
||||
else if (placementObject is String)
|
||||
{
|
||||
placementJSON = IronSourceJSON.Json.Deserialize(placementObject.ToString()) as Dictionary<string, object>;
|
||||
}
|
||||
|
||||
IronSourcePlacement ssp = null;
|
||||
if (placementJSON != null && placementJSON.Count > 0)
|
||||
{
|
||||
int rewardAmount = Convert.ToInt32(placementJSON["placement_reward_amount"].ToString());
|
||||
string rewardName = placementJSON["placement_reward_name"].ToString();
|
||||
string placementName = placementJSON["placement_name"].ToString();
|
||||
|
||||
ssp = new IronSourcePlacement(placementName, rewardName, rewardAmount);
|
||||
}
|
||||
|
||||
return ssp;
|
||||
}
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 99bfbc8fa47ad4f66a90daf185b1d92c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,84 +0,0 @@
|
|||
#if UNITY_ANDROID
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public class IronSourceBannerLevelPlayAndroid : AndroidJavaProxy, IUnityLevelPlayBanner
|
||||
{
|
||||
|
||||
public event Action<IronSourceAdInfo> OnAdLoaded = delegate { };
|
||||
public event Action<IronSourceAdInfo> OnAdLeftApplication = delegate { };
|
||||
public event Action<IronSourceAdInfo> OnAdScreenDismissed = delegate { };
|
||||
public event Action<IronSourceAdInfo> OnAdScreenPresented = delegate { };
|
||||
public event Action<IronSourceAdInfo> OnAdClicked = delegate { };
|
||||
public event Action<IronSourceError> OnAdLoadFailed = delegate { };
|
||||
|
||||
//implements UnityLevelPlayBannerListener java interface and implement banner callbacks
|
||||
public IronSourceBannerLevelPlayAndroid() : base(IronSourceConstants.LevelPlaybannerBridgeListenerClass)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (var pluginClass = new AndroidJavaClass(IronSourceConstants.bridgeClass))
|
||||
{
|
||||
var bridgeInstance = pluginClass.CallStatic<AndroidJavaObject>("getInstance");
|
||||
bridgeInstance.Call("setUnityBannerLevelPlayListener", this);
|
||||
}
|
||||
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
Debug.LogError("setUnityBannerLevelPlayListener method doesn't exist, error: " + e.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onAdLoaded(String data)
|
||||
{
|
||||
if (OnAdLoaded != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(data);
|
||||
OnAdLoaded(adInfo);
|
||||
}
|
||||
|
||||
}
|
||||
void onAdLoadFailed(String args)
|
||||
{
|
||||
if (OnAdLoadFailed != null)
|
||||
{
|
||||
IronSourceError error = IronSourceUtils.getErrorFromErrorObject(args);
|
||||
OnAdLoadFailed(error);
|
||||
}
|
||||
}
|
||||
void onAdClicked(String data)
|
||||
{
|
||||
if (OnAdClicked != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(data);
|
||||
OnAdClicked(adInfo);
|
||||
}
|
||||
}
|
||||
void onAdScreenPresented(String data)
|
||||
{
|
||||
if (OnAdScreenPresented != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(data);
|
||||
OnAdScreenPresented(adInfo);
|
||||
}
|
||||
}
|
||||
void onAdScreenDismissed(String data)
|
||||
{
|
||||
if (OnAdScreenDismissed != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(data);
|
||||
OnAdScreenDismissed(adInfo);
|
||||
}
|
||||
}
|
||||
void onAdLeftApplication(String data)
|
||||
{
|
||||
if (OnAdLeftApplication != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(data);
|
||||
OnAdLeftApplication(adInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 851c6ac5ca510473c85b9bd17937b61b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,81 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class IronSourceEventsDispatcher : MonoBehaviour
|
||||
{
|
||||
private static IronSourceEventsDispatcher instance = null;
|
||||
|
||||
// Queue For Events
|
||||
private static readonly Queue<Action> ironSourceExecuteOnMainThreadQueue = new Queue<Action>();
|
||||
|
||||
public static void executeAction(Action action)
|
||||
{
|
||||
lock (ironSourceExecuteOnMainThreadQueue)
|
||||
{
|
||||
ironSourceExecuteOnMainThreadQueue.Enqueue(action);
|
||||
}
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
// dispatch events on the main thread when the queue is bigger than 0
|
||||
while (ironSourceExecuteOnMainThreadQueue.Count > 0)
|
||||
{
|
||||
Action IronSourceDequeuedAction = null;
|
||||
lock (ironSourceExecuteOnMainThreadQueue)
|
||||
{
|
||||
try
|
||||
{
|
||||
IronSourceDequeuedAction = ironSourceExecuteOnMainThreadQueue.Dequeue();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.LogException(e);
|
||||
}
|
||||
}
|
||||
if (IronSourceDequeuedAction != null)
|
||||
{
|
||||
IronSourceDequeuedAction.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void removeFromParent()
|
||||
{
|
||||
if (Application.platform != RuntimePlatform.IPhonePlayer && Application.platform != RuntimePlatform.Android)
|
||||
{
|
||||
Destroy(this);
|
||||
}
|
||||
}
|
||||
|
||||
public static void initialize()
|
||||
{
|
||||
if (isCreated())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Add an invisible game object to the scene
|
||||
GameObject obj = new GameObject("IronSourceEventsDispatcher");
|
||||
obj.hideFlags = HideFlags.HideAndDontSave;
|
||||
DontDestroyOnLoad(obj);
|
||||
instance = obj.AddComponent<IronSourceEventsDispatcher>();
|
||||
}
|
||||
|
||||
public static bool isCreated()
|
||||
{
|
||||
return instance != null;
|
||||
}
|
||||
|
||||
public void Awake()
|
||||
{
|
||||
DontDestroyOnLoad(gameObject);
|
||||
}
|
||||
|
||||
public void OnDisable()
|
||||
{
|
||||
instance = null;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1ab872a29816240d1995f2a6be3c3c3a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,48 +0,0 @@
|
|||
#if UNITY_ANDROID
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public class IronSourceImpressionDataAndroid : AndroidJavaProxy, IUnityImpressionData
|
||||
{
|
||||
public event Action<IronSourceImpressionData> OnImpressionSuccess = delegate { };
|
||||
public event Action<IronSourceImpressionData> OnImpressionDataReady = delegate { };
|
||||
|
||||
//implements UnityImpressionDataListener java interface
|
||||
public IronSourceImpressionDataAndroid() : base(IronSourceConstants.impressionDataBridgeListenerClass)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (var pluginClass = new AndroidJavaClass(IronSourceConstants.bridgeClass))
|
||||
{
|
||||
var bridgeInstance = pluginClass.CallStatic<AndroidJavaObject>(IronSourceConstants.GET_INSTANCE_KEY);
|
||||
bridgeInstance.Call("setUnityImpressionDataListener", this);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.LogError("setUnityImpressionDataListener method doesn't exist, error: " + e.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void onImpressionSuccess(string data)
|
||||
{
|
||||
if (OnImpressionSuccess != null)
|
||||
{
|
||||
IronSourceImpressionData impressionData = new IronSourceImpressionData(data);
|
||||
OnImpressionSuccess(impressionData);
|
||||
}
|
||||
}
|
||||
|
||||
public void onImpressionDataReady(string data)
|
||||
{
|
||||
if (OnImpressionDataReady != null)
|
||||
{
|
||||
IronSourceImpressionData impressionData = new IronSourceImpressionData(data);
|
||||
OnImpressionDataReady(impressionData);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4a253dfc3c615464b955cf285feca20c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,33 +0,0 @@
|
|||
#if UNITY_ANDROID
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public class IronSourceInitializationAndroid : AndroidJavaProxy,IUnityInitialization
|
||||
{
|
||||
public event Action OnSdkInitializationCompletedEvent = delegate { };
|
||||
|
||||
public IronSourceInitializationAndroid() : base(IronSourceConstants.initializeBridgeListenerClass)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (var pluginClass = new AndroidJavaClass(IronSourceConstants.bridgeClass))
|
||||
{
|
||||
var bridgeInstance = pluginClass.CallStatic<AndroidJavaObject>("getInstance");
|
||||
bridgeInstance.Call("setUnityInitializationListener", this);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.LogError("setUnityInitializationListener method doesn't exist, error: " + e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
void onSdkInitializationCompleted() {
|
||||
if (this.OnSdkInitializationCompletedEvent != null)
|
||||
{
|
||||
this.OnSdkInitializationCompletedEvent();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3e30da7b72536465ea3abd27c40e67ee
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,181 +0,0 @@
|
|||
#if UNITY_ANDROID
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class IronSourceInterstitialAndroid : AndroidJavaProxy, IUnityInterstitial
|
||||
{
|
||||
|
||||
//implements UnityInterstitialListener java interface
|
||||
public IronSourceInterstitialAndroid() : base(IronSourceConstants.interstitialBridgeListenerClass)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (var pluginClass = new AndroidJavaClass(IronSourceConstants.bridgeClass))
|
||||
{
|
||||
var bridgeInstance = pluginClass.CallStatic<AndroidJavaObject>("getInstance");
|
||||
bridgeInstance.Call("setUnityInterstitialListener", this);
|
||||
}
|
||||
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
Debug.LogError("setUnityInterstitialListener method doesn't exist, error: " + e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
public event Action<IronSourceError> OnInterstitialAdShowFailed = delegate { };
|
||||
public event Action<IronSourceError> OnInterstitialAdLoadFailed = delegate { };
|
||||
public event Action OnInterstitialAdReady = delegate { };
|
||||
public event Action OnInterstitialAdOpened = delegate { };
|
||||
public event Action OnInterstitialAdClosed = delegate { };
|
||||
public event Action OnInterstitialAdShowSucceeded = delegate { };
|
||||
public event Action OnInterstitialAdClicked = delegate { };
|
||||
|
||||
public event Action OnInterstitialAdRewarded = delegate { };
|
||||
|
||||
public event Action<string> OnInterstitialAdReadyDemandOnly = delegate { };
|
||||
public event Action<string> OnInterstitialAdOpenedDemandOnly = delegate { };
|
||||
public event Action<string> OnInterstitialAdClosedDemandOnly = delegate { };
|
||||
public event Action<string, IronSourceError> OnInterstitialAdLoadFailedDemandOnly = delegate { };
|
||||
public event Action<string> OnInterstitialAdClickedDemandOnly = delegate { };
|
||||
public event Action<string, IronSourceError> OnInterstitialAdShowFailedDemandOnly = delegate { };
|
||||
|
||||
void onInterstitialAdShowFailed(string description)
|
||||
{
|
||||
if (this.OnInterstitialAdShowFailed != null)
|
||||
{
|
||||
IronSourceError ssp = IronSourceUtils.getErrorFromErrorObject(description);
|
||||
this.OnInterstitialAdShowFailed(ssp);
|
||||
}
|
||||
}
|
||||
|
||||
void onInterstitialAdReady()
|
||||
{
|
||||
if (this.OnInterstitialAdReady != null)
|
||||
{
|
||||
this.OnInterstitialAdReady();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onInterstitialAdOpened()
|
||||
{
|
||||
if (this.OnInterstitialAdOpened != null)
|
||||
{
|
||||
this.OnInterstitialAdOpened();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onInterstitialAdClosed()
|
||||
{
|
||||
if (this.OnInterstitialAdClosed != null)
|
||||
{
|
||||
this.OnInterstitialAdClosed();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onInterstitialAdShowSucceeded()
|
||||
{
|
||||
if (this.OnInterstitialAdShowSucceeded != null)
|
||||
{
|
||||
|
||||
this.OnInterstitialAdShowSucceeded();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
void onInterstitialAdClicked()
|
||||
{
|
||||
if (this.OnInterstitialAdClicked != null)
|
||||
{
|
||||
this.OnInterstitialAdClicked();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onInterstitialAdLoadFailed(string args)
|
||||
{
|
||||
if (this.OnInterstitialAdLoadFailed != null)
|
||||
{
|
||||
IronSourceError err = IronSourceUtils.getErrorFromErrorObject(args);
|
||||
this.OnInterstitialAdLoadFailed(err);
|
||||
}
|
||||
}
|
||||
|
||||
void onInterstitialAdRewarded()
|
||||
{
|
||||
if (this.OnInterstitialAdRewarded != null)
|
||||
{
|
||||
this.OnInterstitialAdRewarded();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onInterstitialAdClickedDemandOnly(string instanceId)
|
||||
{
|
||||
if (this.OnInterstitialAdClickedDemandOnly != null)
|
||||
{
|
||||
this.OnInterstitialAdClickedDemandOnly(instanceId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onInterstitialAdClosedDemandOnly(string instanceId)
|
||||
{
|
||||
if (this.OnInterstitialAdClosedDemandOnly != null)
|
||||
{
|
||||
|
||||
this.OnInterstitialAdClosedDemandOnly(instanceId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onInterstitialAdOpenedDemandOnly(string instanceId)
|
||||
{
|
||||
if (this.OnInterstitialAdOpenedDemandOnly != null)
|
||||
{
|
||||
this.OnInterstitialAdOpenedDemandOnly(instanceId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onInterstitialAdReadyDemandOnly(string instanceId)
|
||||
{
|
||||
if (this.OnInterstitialAdReadyDemandOnly != null)
|
||||
{
|
||||
this.OnInterstitialAdReadyDemandOnly(instanceId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onInterstitialAdLoadFailedDemandOnly(string args)
|
||||
{
|
||||
if (this.OnInterstitialAdLoadFailedDemandOnly != null)
|
||||
{
|
||||
List<object> argList = IronSourceJSON.Json.Deserialize(args) as List<object>;
|
||||
IronSourceError err = IronSourceUtils.getErrorFromErrorObject(argList[1]);
|
||||
string instanceId = argList[0].ToString();
|
||||
this.OnInterstitialAdLoadFailedDemandOnly(instanceId, err);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onInterstitialAdShowFailedDemandOnly(string args)
|
||||
{
|
||||
if (this.OnInterstitialAdShowFailedDemandOnly != null)
|
||||
{
|
||||
List<object> argList = IronSourceJSON.Json.Deserialize(args) as List<object>;
|
||||
IronSourceError err = IronSourceUtils.getErrorFromErrorObject(argList[1]);
|
||||
string instanceId = argList[0].ToString();
|
||||
this.OnInterstitialAdShowFailedDemandOnly(instanceId, err);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endif
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 14404000e4d17461ba21f0cba3caeec2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,394 +0,0 @@
|
|||
using UnityEngine;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
|
||||
public class IronSourceInterstitialEvents : MonoBehaviour
|
||||
{
|
||||
|
||||
#if UNITY_ANDROID
|
||||
|
||||
public static event Action<IronSourceAdInfo> onAdReadyEvent;
|
||||
public static event Action<IronSourceError> onAdLoadFailedEvent;
|
||||
public static event Action<IronSourceAdInfo> onAdOpenedEvent;
|
||||
public static event Action<IronSourceAdInfo> onAdClosedEvent;
|
||||
public static event Action<IronSourceAdInfo> onAdShowSucceededEvent;
|
||||
public static event Action<IronSourceError, IronSourceAdInfo> onAdShowFailedEvent;
|
||||
public static event Action<IronSourceAdInfo> onAdClickedEvent;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
#if UNITY_ANDROID
|
||||
private IUnityLevelPlayInterstitial LevelPlayInterstitialAndroid;
|
||||
#endif
|
||||
|
||||
void Awake()
|
||||
{
|
||||
#if UNITY_ANDROID && !UNITY_EDITOR
|
||||
LevelPlayInterstitialAndroid = new IronSourceInterstitialLevelPlayAndroid();//sets this.IronSourceInterstitialLevelPlayAndroid as listener for Interstitia(Mediation& Demand Only) events in the bridge
|
||||
registerInterstitialEvents();//subscribe to Interstitial events from this.interstitialAndroid
|
||||
#endif
|
||||
|
||||
gameObject.name = "IronSourceInterstitialEvents"; //Change the GameObject name to IronSourceEvents.
|
||||
DontDestroyOnLoad(gameObject); //Makes the object not be destroyed automatically when loading a new scene.
|
||||
}
|
||||
|
||||
|
||||
#if UNITY_ANDROID && !UNITY_EDITOR
|
||||
|
||||
//subscribe to IronSourceInterstitialAndroid IS Mediation & rewarded Interstitial events and notify to subscribed events inside the app
|
||||
private void registerInterstitialEvents()
|
||||
{
|
||||
LevelPlayInterstitialAndroid.OnAdClicked += (IronSourceAdInfo) =>
|
||||
{
|
||||
if (onAdClickedEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdClickedEvent?.Invoke(IronSourceAdInfo);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
LevelPlayInterstitialAndroid.OnAdReady += (IronSourceAdInfo) =>
|
||||
{
|
||||
if (onAdReadyEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdReadyEvent?.Invoke(IronSourceAdInfo);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
LevelPlayInterstitialAndroid.OnAdClosed += (IronSourceAdInfo) =>
|
||||
{
|
||||
if (onAdClosedEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdClosedEvent?.Invoke(IronSourceAdInfo);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
LevelPlayInterstitialAndroid.OnAdOpened += (IronSourceAdInfo) =>
|
||||
{
|
||||
if (onAdOpenedEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdOpenedEvent?.Invoke(IronSourceAdInfo);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
LevelPlayInterstitialAndroid.OnAdLoadFailed += (ironsourceError) =>
|
||||
{
|
||||
if (onAdLoadFailedEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdLoadFailedEvent?.Invoke(ironsourceError);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
LevelPlayInterstitialAndroid.OnAdShowFailed += (ironSourceError, IronSourceAdInfo) =>
|
||||
{
|
||||
if (onAdShowFailedEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdShowFailedEvent?.Invoke(ironSourceError, IronSourceAdInfo);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
LevelPlayInterstitialAndroid.OnAdShowSucceeded += (IronSourceAdInfo) =>
|
||||
{
|
||||
if (onAdShowSucceededEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdShowSucceededEvent?.Invoke(IronSourceAdInfo);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
#if !UNITY_ANDROID
|
||||
|
||||
// ******************************* Interstitial Events *******************************
|
||||
|
||||
private static event Action<IronSourceAdInfo> _onAdReadyEvent;
|
||||
|
||||
public static event Action<IronSourceAdInfo> onAdReadyEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdReadyEvent == null || !_onAdReadyEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdReadyEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdReadyEvent != null || _onAdReadyEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdReadyEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdReady(string args)
|
||||
{
|
||||
if (_onAdReadyEvent != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(args);
|
||||
_onAdReadyEvent(adInfo);
|
||||
}
|
||||
}
|
||||
|
||||
private static event Action<IronSourceError> _onAdLoadFailedEvent;
|
||||
|
||||
public static event Action<IronSourceError> onAdLoadFailedEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdLoadFailedEvent == null || !_onAdLoadFailedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdLoadFailedEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdLoadFailedEvent != null || _onAdLoadFailedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdLoadFailedEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdLoadFailed(string description)
|
||||
{
|
||||
if (_onAdLoadFailedEvent != null)
|
||||
{
|
||||
IronSourceError sse = getErrorFromErrorObject(description);
|
||||
_onAdLoadFailedEvent(sse);
|
||||
}
|
||||
}
|
||||
|
||||
private static event Action<IronSourceAdInfo> _onAdOpenedEvent;
|
||||
|
||||
public static event Action<IronSourceAdInfo> onAdOpenedEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdOpenedEvent == null || !_onAdOpenedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdOpenedEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdOpenedEvent != null || _onAdOpenedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdOpenedEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdOpened(string args)
|
||||
{
|
||||
if (_onAdOpenedEvent != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(args);
|
||||
_onAdOpenedEvent(adInfo);
|
||||
}
|
||||
}
|
||||
|
||||
private static event Action<IronSourceAdInfo> _onAdClosedEvent;
|
||||
|
||||
public static event Action<IronSourceAdInfo> onAdClosedEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdClosedEvent == null || !_onAdClosedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdClosedEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdClosedEvent != null || _onAdClosedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdClosedEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdClosed(string args)
|
||||
{
|
||||
if (_onAdClosedEvent != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(args);
|
||||
_onAdClosedEvent(adInfo);
|
||||
}
|
||||
}
|
||||
|
||||
private static event Action<IronSourceAdInfo> _onAdShowSucceededEvent;
|
||||
|
||||
public static event Action<IronSourceAdInfo> onAdShowSucceededEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdShowSucceededEvent == null || !_onAdShowSucceededEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdShowSucceededEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdShowSucceededEvent != null || _onAdShowSucceededEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdShowSucceededEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdShowSucceeded(string args)
|
||||
{
|
||||
if (_onAdShowSucceededEvent != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(args);
|
||||
_onAdShowSucceededEvent(adInfo);
|
||||
}
|
||||
}
|
||||
|
||||
private static event Action<IronSourceError, IronSourceAdInfo> _onAdShowFailedEvent;
|
||||
|
||||
public static event Action<IronSourceError, IronSourceAdInfo> onAdShowFailedEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdShowFailedEvent == null || !_onAdShowFailedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdShowFailedEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdShowFailedEvent != null || _onAdShowFailedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdShowFailedEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdShowFailed(string args)
|
||||
{
|
||||
if (_onAdShowFailedEvent != null)
|
||||
{
|
||||
List<object> argList = IronSourceJSON.Json.Deserialize(args) as List<object>;
|
||||
IronSourceError err = getErrorFromErrorObject(argList[0]);
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(argList[1].ToString());
|
||||
_onAdShowFailedEvent(err, adInfo);
|
||||
}
|
||||
}
|
||||
|
||||
private static event Action<IronSourceAdInfo> _onAdClickedEvent;
|
||||
|
||||
public static event Action<IronSourceAdInfo> onAdClickedEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdClickedEvent == null || !_onAdClickedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdClickedEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdClickedEvent != null || _onAdClickedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdClickedEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdClicked(string args)
|
||||
{
|
||||
if (_onAdClickedEvent != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(args);
|
||||
_onAdClickedEvent(adInfo);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
// ******************************* Helper methods *******************************
|
||||
|
||||
private IronSourceError getErrorFromErrorObject(object descriptionObject)
|
||||
{
|
||||
Dictionary<string, object> error = null;
|
||||
if (descriptionObject is IDictionary)
|
||||
{
|
||||
error = descriptionObject as Dictionary<string, object>;
|
||||
}
|
||||
else if (descriptionObject is String && !String.IsNullOrEmpty(descriptionObject.ToString()))
|
||||
{
|
||||
error = IronSourceJSON.Json.Deserialize(descriptionObject.ToString()) as Dictionary<string, object>;
|
||||
}
|
||||
|
||||
IronSourceError sse = new IronSourceError(-1, "");
|
||||
if (error != null && error.Count > 0)
|
||||
{
|
||||
int eCode = Convert.ToInt32(error[IronSourceConstants.ERROR_CODE].ToString());
|
||||
string eDescription = error[IronSourceConstants.ERROR_DESCRIPTION].ToString();
|
||||
sse = new IronSourceError(eCode, eDescription);
|
||||
}
|
||||
|
||||
return sse;
|
||||
}
|
||||
|
||||
private IronSourcePlacement getPlacementFromObject(object placementObject)
|
||||
{
|
||||
Dictionary<string, object> placementJSON = null;
|
||||
if (placementObject is IDictionary)
|
||||
{
|
||||
placementJSON = placementObject as Dictionary<string, object>;
|
||||
}
|
||||
else if (placementObject is String)
|
||||
{
|
||||
placementJSON = IronSourceJSON.Json.Deserialize(placementObject.ToString()) as Dictionary<string, object>;
|
||||
}
|
||||
|
||||
IronSourcePlacement ssp = null;
|
||||
if (placementJSON != null && placementJSON.Count > 0)
|
||||
{
|
||||
int rewardAmount = Convert.ToInt32(placementJSON["placement_reward_amount"].ToString());
|
||||
string rewardName = placementJSON["placement_reward_name"].ToString();
|
||||
string placementName = placementJSON["placement_name"].ToString();
|
||||
|
||||
ssp = new IronSourcePlacement(placementName, rewardName, rewardAmount);
|
||||
}
|
||||
|
||||
return ssp;
|
||||
}
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 58b0e3f8497ed44dd9743001d502d7b2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,106 +0,0 @@
|
|||
#if UNITY_ANDROID
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class IronSourceInterstitialLevelPlayAndroid : AndroidJavaProxy, IUnityLevelPlayInterstitial
|
||||
{
|
||||
|
||||
//implements UnityInterstitialLevelPlayListener java interface
|
||||
public IronSourceInterstitialLevelPlayAndroid() : base(IronSourceConstants.LevelPlayinterstitialBridgeListenerClass)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (var pluginClass = new AndroidJavaClass(IronSourceConstants.bridgeClass))
|
||||
{
|
||||
var bridgeInstance = pluginClass.CallStatic<AndroidJavaObject>("getInstance");
|
||||
bridgeInstance.Call("setUnityInterstitialLevelPlayListener", this);
|
||||
}
|
||||
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
Debug.LogError("setUnityInterstitialLevelPlayListener method doesn't exist, error: " + e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
public event Action<IronSourceError, IronSourceAdInfo> OnAdShowFailed = delegate { };
|
||||
public event Action<IronSourceError> OnAdLoadFailed = delegate { };
|
||||
public event Action<IronSourceAdInfo> OnAdReady = delegate { };
|
||||
public event Action<IronSourceAdInfo> OnAdOpened = delegate { };
|
||||
public event Action<IronSourceAdInfo> OnAdClosed = delegate { };
|
||||
public event Action<IronSourceAdInfo> OnAdShowSucceeded = delegate { };
|
||||
public event Action<IronSourceAdInfo> OnAdClicked = delegate { };
|
||||
|
||||
void onAdShowFailed(string description, String data)
|
||||
{
|
||||
if (this.OnAdShowFailed != null)
|
||||
{
|
||||
IronSourceError ssp = IronSourceUtils.getErrorFromErrorObject(description);
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(data);
|
||||
this.OnAdShowFailed(ssp, adInfo);
|
||||
}
|
||||
}
|
||||
|
||||
void onAdReady(String data)
|
||||
{
|
||||
if (this.OnAdReady != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(data);
|
||||
this.OnAdReady(adInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onAdOpened(String data)
|
||||
{
|
||||
if (this.OnAdOpened != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(data);
|
||||
this.OnAdOpened(adInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onAdClosed(String data)
|
||||
{
|
||||
if (this.OnAdClosed != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(data);
|
||||
this.OnAdClosed(adInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onAdShowSucceeded(String data)
|
||||
{
|
||||
if (this.OnAdShowSucceeded != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(data);
|
||||
this.OnAdShowSucceeded(adInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
void onAdClicked(String data)
|
||||
{
|
||||
if (this.OnAdClicked != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(data);
|
||||
this.OnAdClicked(adInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onAdLoadFailed(string args)
|
||||
{
|
||||
if (this.OnAdLoadFailed != null)
|
||||
{
|
||||
IronSourceError err = IronSourceUtils.getErrorFromErrorObject(args);
|
||||
this.OnAdLoadFailed(err);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 162449e73830248ce8942bce328f027d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,85 +0,0 @@
|
|||
#if UNITY_ANDROID
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class IronSourceOfferwallAndroid : AndroidJavaProxy, IUnityOfferwall
|
||||
{
|
||||
|
||||
//implements UnityOfferwallListener java interface
|
||||
public IronSourceOfferwallAndroid() : base(IronSourceConstants.offerwallBridgeListenerClass)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (var pluginClass = new AndroidJavaClass(IronSourceConstants.bridgeClass))
|
||||
{
|
||||
var bridgeInstance = pluginClass.CallStatic<AndroidJavaObject>("getInstance");
|
||||
bridgeInstance.Call("setUnityOfferwallListener", this);
|
||||
}
|
||||
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
Debug.LogError("setUnityOfferwallListener method doesn't exist, error: " + e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
public event Action<IronSourceError> OnOfferwallShowFailed = delegate { };
|
||||
public event Action OnOfferwallOpened = delegate { };
|
||||
public event Action OnOfferwallClosed = delegate { };
|
||||
public event Action<IronSourceError> OnGetOfferwallCreditsFailed = delegate { };
|
||||
public event Action<Dictionary<string, object>> OnOfferwallAdCredited = delegate { };
|
||||
public event Action<bool> OnOfferwallAvailable = delegate { };
|
||||
|
||||
public void onOfferwallOpened ()
|
||||
{
|
||||
if (this.OnOfferwallOpened != null) {
|
||||
this.OnOfferwallOpened ();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void onOfferwallShowFailed (string description)
|
||||
{
|
||||
if (OnOfferwallShowFailed != null) {
|
||||
IronSourceError sse = IronSourceUtils.getErrorFromErrorObject (description);
|
||||
OnOfferwallShowFailed (sse);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void onOfferwallClosed ()
|
||||
{
|
||||
if (OnOfferwallClosed != null) {
|
||||
OnOfferwallClosed ();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void onGetOfferwallCreditsFailed (string description)
|
||||
{
|
||||
if (OnGetOfferwallCreditsFailed != null) {
|
||||
IronSourceError sse = IronSourceUtils.getErrorFromErrorObject (description);
|
||||
OnGetOfferwallCreditsFailed (sse);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void onOfferwallAdCredited (string json)
|
||||
{
|
||||
if (OnOfferwallAdCredited != null)
|
||||
OnOfferwallAdCredited (IronSourceJSON.Json.Deserialize (json) as Dictionary<string,object>);
|
||||
}
|
||||
|
||||
|
||||
public void onOfferwallAvailable (string stringAvailable)
|
||||
{
|
||||
bool isAvailable = (stringAvailable == "true") ? true : false;
|
||||
if (OnOfferwallAvailable != null)
|
||||
OnOfferwallAvailable (isAvailable);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endif
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: df1e8dbc4d4f34a2787d43efba8231af
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,190 +0,0 @@
|
|||
#if UNITY_ANDROID
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
public class IronSourceRewardedVideoAndroid : AndroidJavaProxy, IUnityRewardedVideo
|
||||
{
|
||||
//implements UnityRewardedVideoListener java interface
|
||||
public IronSourceRewardedVideoAndroid(): base(IronSourceConstants.rewardedVideoBridgeListenerClass)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (var pluginClass = new AndroidJavaClass(IronSourceConstants.bridgeClass))
|
||||
{
|
||||
var bridgeInstance = pluginClass.CallStatic<AndroidJavaObject>("getInstance");
|
||||
bridgeInstance.Call("setUnityRewardedVideoListener", this);
|
||||
}
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
Debug.LogError("setUnityRewardedVideoListener method doesn't exist, error: " + e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
public event Action<IronSourceError> OnRewardedVideoAdShowFailed = delegate { };
|
||||
public event Action OnRewardedVideoAdOpened = delegate { };
|
||||
public event Action OnRewardedVideoAdClosed = delegate { };
|
||||
public event Action OnRewardedVideoAdStarted = delegate { };
|
||||
public event Action OnRewardedVideoAdEnded = delegate { };
|
||||
public event Action<IronSourcePlacement> OnRewardedVideoAdRewarded = delegate { };
|
||||
public event Action<IronSourcePlacement> OnRewardedVideoAdClicked = delegate { };
|
||||
public event Action<bool> OnRewardedVideoAvailabilityChanged = delegate { };
|
||||
|
||||
public event Action<String> OnRewardedVideoAdOpenedDemandOnlyEvent = delegate { };
|
||||
public event Action<String> OnRewardedVideoAdClosedDemandOnlyEvent = delegate { };
|
||||
public event Action<String> OnRewardedVideoAdLoadedDemandOnlyEvent = delegate { };
|
||||
public event Action<String> OnRewardedVideoAdRewardedDemandOnlyEvent = delegate { };
|
||||
public event Action<String, IronSourceError> OnRewardedVideoAdShowFailedDemandOnlyEvent = delegate { };
|
||||
public event Action<String> OnRewardedVideoAdClickedDemandOnlyEvent = delegate { };
|
||||
public event Action<String, IronSourceError> OnRewardedVideoAdLoadFailedDemandOnlyEvent = delegate { };
|
||||
|
||||
|
||||
void onRewardedVideoAdShowFailed(string description)
|
||||
{
|
||||
if (this.OnRewardedVideoAdShowFailed != null)
|
||||
{
|
||||
IronSourceError ssp = IronSourceUtils.getErrorFromErrorObject(description);
|
||||
this.OnRewardedVideoAdShowFailed(ssp);
|
||||
}
|
||||
}
|
||||
|
||||
void onRewardedVideoAdClosed()
|
||||
{
|
||||
if (this.OnRewardedVideoAdClosed != null)
|
||||
{
|
||||
this.OnRewardedVideoAdClosed();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onRewardedVideoAdOpened()
|
||||
{
|
||||
if (this.OnRewardedVideoAdOpened != null)
|
||||
{
|
||||
this.OnRewardedVideoAdOpened();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onRewardedVideoAdStarted()
|
||||
{
|
||||
if (this.OnRewardedVideoAdStarted != null)
|
||||
{
|
||||
this.OnRewardedVideoAdStarted();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onRewardedVideoAdEnded()
|
||||
{
|
||||
if (this.OnRewardedVideoAdEnded != null)
|
||||
{
|
||||
|
||||
this.OnRewardedVideoAdEnded();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onRewardedVideoAdRewarded(string description)
|
||||
{
|
||||
if (this.OnRewardedVideoAdRewarded != null)
|
||||
{
|
||||
IronSourcePlacement ssp = IronSourceUtils.getPlacementFromObject(description);
|
||||
this.OnRewardedVideoAdRewarded(ssp);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onRewardedVideoAdClicked(string description)
|
||||
{
|
||||
if (this.OnRewardedVideoAdClicked != null)
|
||||
{
|
||||
IronSourcePlacement ssp = IronSourceUtils.getPlacementFromObject(description);
|
||||
|
||||
this.OnRewardedVideoAdClicked(ssp);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onRewardedVideoAvailabilityChanged(string stringAvailable)
|
||||
{
|
||||
bool isAvailable = (stringAvailable == "true") ? true : false;
|
||||
|
||||
if (this.OnRewardedVideoAvailabilityChanged != null)
|
||||
{
|
||||
this.OnRewardedVideoAvailabilityChanged(isAvailable);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onRewardedVideoAdShowFailedDemandOnly(string args)
|
||||
{
|
||||
if (this.OnRewardedVideoAdShowFailedDemandOnlyEvent != null && !String.IsNullOrEmpty(args))
|
||||
{
|
||||
List<object> argList = IronSourceJSON.Json.Deserialize(args) as List<object>;
|
||||
IronSourceError err = IronSourceUtils.getErrorFromErrorObject(argList[1]);
|
||||
string instanceId = argList[0].ToString();
|
||||
this.OnRewardedVideoAdShowFailedDemandOnlyEvent(instanceId, err);
|
||||
}
|
||||
}
|
||||
|
||||
void onRewardedVideoAdClosedDemandOnly(string instanceId)
|
||||
{
|
||||
if (this.OnRewardedVideoAdClosedDemandOnlyEvent != null)
|
||||
{
|
||||
this.OnRewardedVideoAdClosedDemandOnlyEvent(instanceId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onRewardedVideoAdOpenedDemandOnly(string instanceId)
|
||||
{
|
||||
if (this.OnRewardedVideoAdOpenedDemandOnlyEvent != null)
|
||||
{
|
||||
this.OnRewardedVideoAdOpenedDemandOnlyEvent(instanceId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onRewardedVideoAdRewardedDemandOnly(string instanceId)
|
||||
{
|
||||
if (this.OnRewardedVideoAdRewardedDemandOnlyEvent != null)
|
||||
{
|
||||
|
||||
this.OnRewardedVideoAdRewardedDemandOnlyEvent(instanceId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onRewardedVideoAdClickedDemandOnly(string instanceId)
|
||||
{
|
||||
if (this.OnRewardedVideoAdClickedDemandOnlyEvent != null)
|
||||
{
|
||||
this.OnRewardedVideoAdClickedDemandOnlyEvent(instanceId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onRewardedVideoAdLoadedDemandOnly(string instanceId)
|
||||
{
|
||||
if (this.OnRewardedVideoAdLoadedDemandOnlyEvent != null)
|
||||
{
|
||||
this.OnRewardedVideoAdLoadedDemandOnlyEvent(instanceId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onRewardedVideoAdLoadFailedDemandOnly(string args)
|
||||
{
|
||||
if (this.OnRewardedVideoAdLoadFailedDemandOnlyEvent != null)
|
||||
{
|
||||
List<object> argList = IronSourceJSON.Json.Deserialize(args) as List<object>;
|
||||
IronSourceError err = IronSourceUtils.getErrorFromErrorObject(argList[1]);
|
||||
string instanceId = argList[0].ToString();
|
||||
this.OnRewardedVideoAdLoadFailedDemandOnlyEvent(instanceId, err);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 39b3b6374f4d44d799402030ee135657
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,485 +0,0 @@
|
|||
using UnityEngine;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
|
||||
public class IronSourceRewardedVideoEvents : MonoBehaviour
|
||||
{
|
||||
|
||||
#if UNITY_ANDROID
|
||||
|
||||
public static event Action<IronSourceError,IronSourceAdInfo> onAdShowFailedEvent;
|
||||
public static event Action <IronSourceAdInfo> onAdOpenedEvent;
|
||||
public static event Action <IronSourceAdInfo> onAdClosedEvent;
|
||||
public static event Action<IronSourcePlacement,IronSourceAdInfo> onAdRewardedEvent;
|
||||
public static event Action<IronSourcePlacement,IronSourceAdInfo> onAdClickedEvent;
|
||||
public static event Action<IronSourceAdInfo> onAdAvailableEvent;
|
||||
public static event Action onAdUnavailableEvent;
|
||||
public static event Action<IronSourceError> onAdLoadFailedEvent;
|
||||
public static event Action<IronSourceAdInfo> onAdReadyEvent;
|
||||
|
||||
#endif
|
||||
|
||||
#if UNITY_ANDROID
|
||||
private IUnityLevelPlayRewardedVideo LevelPlayRewardedVideoAndroid;
|
||||
private IUnityLevelPlayRewardedVideoManual LevelPlayRewardedVideoAndroidManual;
|
||||
#endif
|
||||
|
||||
void Awake()
|
||||
{
|
||||
#if UNITY_ANDROID && !UNITY_EDITOR
|
||||
LevelPlayRewardedVideoAndroid = new IronSourceRewardedVideoLevelPlayAndroid();//sets this.IronSourceRewardedVideoLevelPlayAndroid as listener for RV events in the bridge
|
||||
registerRewardedVideoEvents();//subscribe to RV events from this.rewardedVideoLevelPlayAndroid
|
||||
LevelPlayRewardedVideoAndroidManual = new IronSourceRewardedVideoLevelPlayManualAndroid();
|
||||
registerRewardedVideoManualEvents();//subscribe to RV Manual events from this.rewardedVideoManualLevelPlayAndroid
|
||||
#endif
|
||||
|
||||
gameObject.name = "IronSourceRewardedVideoEvents"; //Change the GameObject name to IronSourceEvents.
|
||||
DontDestroyOnLoad(gameObject); //Makes the object not be destroyed automatically when loading a new scene.
|
||||
}
|
||||
|
||||
|
||||
#if UNITY_ANDROID && !UNITY_EDITOR
|
||||
|
||||
//subscribe to IronSourceRewardedVideoLevelPlayAndroid RV Mediation events and notify to subscribed events inside the app
|
||||
private void registerRewardedVideoEvents()
|
||||
{
|
||||
LevelPlayRewardedVideoAndroid.OnAdClicked += (IronSourcePlacement, IronSourceAdInfo) =>
|
||||
{
|
||||
if (onAdClickedEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdClickedEvent?.Invoke(IronSourcePlacement, IronSourceAdInfo);
|
||||
});
|
||||
}
|
||||
};
|
||||
LevelPlayRewardedVideoAndroid.OnAdShowFailed += (IronSourceError, IronSourceAdInfo) =>
|
||||
{
|
||||
if (onAdShowFailedEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdShowFailedEvent?.Invoke(IronSourceError, IronSourceAdInfo);
|
||||
});
|
||||
}
|
||||
};
|
||||
LevelPlayRewardedVideoAndroid.OnAdOpened += (IronSourceAdInfo) =>
|
||||
{
|
||||
if (onAdOpenedEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdOpenedEvent?.Invoke(IronSourceAdInfo);
|
||||
});
|
||||
}
|
||||
};
|
||||
LevelPlayRewardedVideoAndroid.OnAdClosed += (IronSourceAdInfo) =>
|
||||
{
|
||||
if (onAdClosedEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdClosedEvent?.Invoke(IronSourceAdInfo);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
LevelPlayRewardedVideoAndroid.OnAdRewarded += (IronSourcePlacement, IronSourceAdInfo) =>
|
||||
{
|
||||
if (onAdRewardedEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdRewardedEvent?.Invoke(IronSourcePlacement, IronSourceAdInfo);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
LevelPlayRewardedVideoAndroid.OnAdAvailable += ( IronSourceAdInfo) =>
|
||||
{
|
||||
if (onAdAvailableEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdAvailableEvent?.Invoke(IronSourceAdInfo);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
LevelPlayRewardedVideoAndroid.OnAdUnavailable += () =>
|
||||
{
|
||||
if (onAdUnavailableEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdUnavailableEvent?.Invoke();
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
// ******************************* RewardedVideo Manual Load Events *******************************
|
||||
|
||||
public void registerRewardedVideoManualEvents()
|
||||
{
|
||||
LevelPlayRewardedVideoAndroidManual.OnAdReady += (IronSourceAdInfo) =>
|
||||
{
|
||||
if (onAdReadyEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdReadyEvent?.Invoke(IronSourceAdInfo);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
LevelPlayRewardedVideoAndroidManual.OnAdLoadFailed += (IronSourceError) =>
|
||||
{
|
||||
if (onAdLoadFailedEvent != null)
|
||||
{
|
||||
IronSourceEventsDispatcher.executeAction(() =>
|
||||
{
|
||||
onAdLoadFailedEvent?.Invoke(IronSourceError);
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
#if !UNITY_ANDROID
|
||||
|
||||
// ******************************* Rewarded Video Events *******************************
|
||||
private static event Action<IronSourceError, IronSourceAdInfo> _onAdShowFailedEvent;
|
||||
|
||||
public static event Action<IronSourceError, IronSourceAdInfo> onAdShowFailedEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdShowFailedEvent == null || !_onAdShowFailedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdShowFailedEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdShowFailedEvent != null || _onAdShowFailedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdShowFailedEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdShowFailed(string args)
|
||||
{
|
||||
if (_onAdShowFailedEvent != null)
|
||||
{
|
||||
List<object> argList = IronSourceJSON.Json.Deserialize(args) as List<object>;
|
||||
IronSourceError err = getErrorFromErrorObject(argList[0]);
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(argList[1].ToString());
|
||||
_onAdShowFailedEvent(err, adInfo);
|
||||
}
|
||||
}
|
||||
|
||||
private static event Action<IronSourceAdInfo> _onAdOpenedEvent;
|
||||
|
||||
public static event Action<IronSourceAdInfo> onAdOpenedEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdOpenedEvent == null || !_onAdOpenedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdOpenedEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdOpenedEvent != null || _onAdOpenedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdOpenedEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdOpened(string args)
|
||||
{
|
||||
if (_onAdOpenedEvent != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(args);
|
||||
_onAdOpenedEvent(adInfo);
|
||||
}
|
||||
}
|
||||
|
||||
private static event Action<IronSourceAdInfo> _onAdClosedEvent;
|
||||
|
||||
public static event Action<IronSourceAdInfo> onAdClosedEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdClosedEvent == null || !_onAdClosedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdClosedEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdClosedEvent != null || _onAdClosedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdClosedEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdClosed(string args)
|
||||
{
|
||||
if (_onAdClosedEvent != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(args);
|
||||
_onAdClosedEvent(adInfo);
|
||||
}
|
||||
}
|
||||
|
||||
private static event Action<IronSourcePlacement, IronSourceAdInfo> _onAdRewardedEvent;
|
||||
|
||||
public static event Action<IronSourcePlacement, IronSourceAdInfo> onAdRewardedEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdRewardedEvent == null || !_onAdRewardedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdRewardedEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdRewardedEvent != null || _onAdRewardedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdRewardedEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdRewarded(string args)
|
||||
{
|
||||
if (_onAdRewardedEvent != null)
|
||||
{
|
||||
List<object> argList = IronSourceJSON.Json.Deserialize(args) as List<object>;
|
||||
IronSourcePlacement ssp = getPlacementFromObject(argList[0]);
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(argList[1].ToString());
|
||||
_onAdRewardedEvent(ssp, adInfo);
|
||||
}
|
||||
}
|
||||
|
||||
private static event Action<IronSourcePlacement, IronSourceAdInfo> _onAdClickedEvent;
|
||||
|
||||
public static event Action<IronSourcePlacement, IronSourceAdInfo> onAdClickedEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdClickedEvent == null || !_onAdClickedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdClickedEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdClickedEvent != null || _onAdClickedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdClickedEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdClicked(string args)
|
||||
{
|
||||
if (_onAdClickedEvent != null)
|
||||
{
|
||||
List<object> argList = IronSourceJSON.Json.Deserialize(args) as List<object>;
|
||||
IronSourcePlacement ssp = getPlacementFromObject(argList[0]);
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(argList[1].ToString());
|
||||
_onAdClickedEvent(ssp, adInfo);
|
||||
}
|
||||
}
|
||||
|
||||
private static event Action<IronSourceAdInfo> _onAdAvailableEvent;
|
||||
|
||||
public static event Action<IronSourceAdInfo> onAdAvailableEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdAvailableEvent == null || !_onAdAvailableEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdAvailableEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdAvailableEvent != null || _onAdAvailableEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdAvailableEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdAvailable(string args)
|
||||
{
|
||||
if (_onAdAvailableEvent != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(args);
|
||||
_onAdAvailableEvent( adInfo);
|
||||
}
|
||||
}
|
||||
|
||||
private static event Action _onAdUnavailableEvent;
|
||||
|
||||
public static event Action onAdUnavailableEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdUnavailableEvent == null || !_onAdUnavailableEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdUnavailableEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdUnavailableEvent != null || _onAdUnavailableEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdUnavailableEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdUnavailable()
|
||||
{
|
||||
if (_onAdUnavailableEvent != null)
|
||||
{
|
||||
_onAdUnavailableEvent();
|
||||
}
|
||||
}
|
||||
|
||||
// ******************************* RewardedVideo Manual Load Events *******************************
|
||||
|
||||
private static event Action<IronSourceError> _onAdLoadFailedEvent;
|
||||
|
||||
public static event Action<IronSourceError> onAdLoadFailedEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdLoadFailedEvent == null || !_onAdLoadFailedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdLoadFailedEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdLoadFailedEvent != null || _onAdLoadFailedEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdLoadFailedEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdLoadFailed(string description)
|
||||
{
|
||||
|
||||
if (_onAdLoadFailedEvent != null)
|
||||
{
|
||||
IronSourceError sse = getErrorFromErrorObject(description);
|
||||
_onAdLoadFailedEvent(sse);
|
||||
}
|
||||
}
|
||||
|
||||
private static event Action<IronSourceAdInfo> _onAdReadyEvent;
|
||||
|
||||
public static event Action<IronSourceAdInfo> onAdReadyEvent
|
||||
{
|
||||
add
|
||||
{
|
||||
if (_onAdReadyEvent == null || !_onAdReadyEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdReadyEvent += value;
|
||||
}
|
||||
}
|
||||
|
||||
remove
|
||||
{
|
||||
if (_onAdReadyEvent != null || _onAdReadyEvent.GetInvocationList().Contains(value))
|
||||
{
|
||||
_onAdReadyEvent -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onAdReady(string adinfo)
|
||||
{
|
||||
if (_onAdReadyEvent != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(adinfo);
|
||||
_onAdReadyEvent(adInfo);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
// ******************************* Helper methods *******************************
|
||||
|
||||
private IronSourceError getErrorFromErrorObject(object descriptionObject)
|
||||
{
|
||||
Dictionary<string, object> error = null;
|
||||
if (descriptionObject is IDictionary)
|
||||
{
|
||||
error = descriptionObject as Dictionary<string, object>;
|
||||
}
|
||||
else if (descriptionObject is String && !String.IsNullOrEmpty(descriptionObject.ToString()))
|
||||
{
|
||||
error = IronSourceJSON.Json.Deserialize(descriptionObject.ToString()) as Dictionary<string, object>;
|
||||
}
|
||||
|
||||
IronSourceError sse = new IronSourceError(-1, "");
|
||||
if (error != null && error.Count > 0)
|
||||
{
|
||||
int eCode = Convert.ToInt32(error[IronSourceConstants.ERROR_CODE].ToString());
|
||||
string eDescription = error[IronSourceConstants.ERROR_DESCRIPTION].ToString();
|
||||
sse = new IronSourceError(eCode, eDescription);
|
||||
}
|
||||
|
||||
return sse;
|
||||
}
|
||||
|
||||
private IronSourcePlacement getPlacementFromObject(object placementObject)
|
||||
{
|
||||
Dictionary<string, object> placementJSON = null;
|
||||
if (placementObject is IDictionary)
|
||||
{
|
||||
placementJSON = placementObject as Dictionary<string, object>;
|
||||
}
|
||||
else if (placementObject is String)
|
||||
{
|
||||
placementJSON = IronSourceJSON.Json.Deserialize(placementObject.ToString()) as Dictionary<string, object>;
|
||||
}
|
||||
|
||||
IronSourcePlacement ssp = null;
|
||||
if (placementJSON != null && placementJSON.Count > 0)
|
||||
{
|
||||
int rewardAmount = Convert.ToInt32(placementJSON["placement_reward_amount"].ToString());
|
||||
string rewardName = placementJSON["placement_reward_name"].ToString();
|
||||
string placementName = placementJSON["placement_name"].ToString();
|
||||
|
||||
ssp = new IronSourcePlacement(placementName, rewardName, rewardAmount);
|
||||
}
|
||||
|
||||
return ssp;
|
||||
}
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 270f2896c00894db189ba1d2150eb671
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,108 +0,0 @@
|
|||
#if UNITY_ANDROID
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
public class IronSourceRewardedVideoLevelPlayAndroid : AndroidJavaProxy, IUnityLevelPlayRewardedVideo
|
||||
{
|
||||
//implements UnityRewardedVideoListener java interface
|
||||
public IronSourceRewardedVideoLevelPlayAndroid(): base(IronSourceConstants.LevelPlayRewardedVideoBridgeListenerClass)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (var pluginClass = new AndroidJavaClass(IronSourceConstants.bridgeClass))
|
||||
{
|
||||
var bridgeInstance = pluginClass.CallStatic<AndroidJavaObject>("getInstance");
|
||||
bridgeInstance.Call("setUnityRewardedVideoLevelPlayListener", this);
|
||||
}
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
Debug.LogError("setUnityRewardedVideoLevelPlayListener method doesn't exist, error: " + e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
public event Action<IronSourceError, IronSourceAdInfo> OnAdShowFailed = delegate { };
|
||||
public event Action<IronSourceAdInfo> OnAdOpened = delegate { };
|
||||
public event Action<IronSourceAdInfo> OnAdClosed = delegate { };
|
||||
public event Action<IronSourcePlacement, IronSourceAdInfo> OnAdRewarded = delegate { };
|
||||
public event Action<IronSourcePlacement,IronSourceAdInfo> OnAdClicked = delegate { };
|
||||
public event Action<IronSourceAdInfo> OnAdAvailable = delegate { };
|
||||
public event Action OnAdUnavailable = delegate { };
|
||||
|
||||
void onAdShowFailed(string description, string data)
|
||||
{
|
||||
if (this.OnAdShowFailed != null)
|
||||
{
|
||||
IronSourceError ssp = IronSourceUtils.getErrorFromErrorObject(description);
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(data);
|
||||
this.OnAdShowFailed(ssp, adInfo);
|
||||
}
|
||||
}
|
||||
|
||||
void onAdClosed(string data)
|
||||
{
|
||||
if (this.OnAdClosed != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(data);
|
||||
this.OnAdClosed(adInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onAdOpened(string data)
|
||||
{
|
||||
if (this.OnAdOpened != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(data);
|
||||
this.OnAdOpened(adInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
void onAdRewarded(string description, string data)
|
||||
{
|
||||
if (this.OnAdRewarded != null)
|
||||
{
|
||||
IronSourcePlacement ssp = IronSourceUtils.getPlacementFromObject(description);
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(data);
|
||||
this.OnAdRewarded(ssp, adInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onAdClicked(string description, string data)
|
||||
{
|
||||
if (this.OnAdClicked != null)
|
||||
{
|
||||
IronSourcePlacement ssp = IronSourceUtils.getPlacementFromObject(description);
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(data);
|
||||
this.OnAdClicked(ssp, adInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onAdAvailable( string data)
|
||||
{
|
||||
|
||||
|
||||
if (this.OnAdAvailable != null)
|
||||
{
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(data);
|
||||
this.OnAdAvailable( adInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void onAdUnavailable()
|
||||
{
|
||||
|
||||
if (this.OnAdUnavailable != null)
|
||||
{
|
||||
this.OnAdUnavailable();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 623afe7df14344624a7dd99a92e2ac3d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,43 +0,0 @@
|
|||
#if UNITY_ANDROID
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
public class IronSourceRewardedVideoLevelPlayManualAndroid : AndroidJavaProxy, IUnityLevelPlayRewardedVideoManual
|
||||
{
|
||||
|
||||
public IronSourceRewardedVideoLevelPlayManualAndroid() : base(IronSourceConstants.LevelPlayRewardedVideoManualBridgeListenerClass)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (var pluginClass = new AndroidJavaClass(IronSourceConstants.bridgeClass))
|
||||
{
|
||||
var bridgeInstance = pluginClass.CallStatic<AndroidJavaObject>("getInstance");
|
||||
bridgeInstance.Call("setUnityRewardedVideoManualLevelPlayListener", this);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.LogError("setUnityRewardedVideoManualLevelPlayListener method doesn't exist, error: " + e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
public event Action<IronSourceError> OnAdLoadFailed = delegate { };
|
||||
public event Action<IronSourceAdInfo> OnAdReady = delegate { };
|
||||
|
||||
|
||||
void onAdReady(string data) {
|
||||
if (this.OnAdReady != null) {
|
||||
IronSourceAdInfo adInfo = new IronSourceAdInfo(data);
|
||||
this.OnAdReady(adInfo);
|
||||
}
|
||||
}
|
||||
|
||||
void onAdLoadFailed(string args) {
|
||||
if (this.OnAdLoadFailed!=null) {
|
||||
IronSourceError err = IronSourceUtils.getErrorFromErrorObject(args);
|
||||
this.OnAdLoadFailed(err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1fd80cf91610541668ad0bf6e462d1e1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,43 +0,0 @@
|
|||
#if UNITY_ANDROID
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
public class IronSourceRewardedVideoManualAndroid : AndroidJavaProxy, IUnityRewardedVideoManual
|
||||
{
|
||||
|
||||
public IronSourceRewardedVideoManualAndroid() : base(IronSourceConstants.rewardedVideoManualBridgeListenerClass)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (var pluginClass = new AndroidJavaClass(IronSourceConstants.bridgeClass))
|
||||
{
|
||||
var bridgeInstance = pluginClass.CallStatic<AndroidJavaObject>("getInstance");
|
||||
bridgeInstance.Call("setUnityRewardedVideoManualListener", this);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.LogError("setUnityRewardedVideoListener method doesn't exist, error: " + e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
public event Action<IronSourceError> OnRewardedVideoAdLoadFailed = delegate { };
|
||||
public event Action OnRewardedVideoAdReady = delegate { };
|
||||
|
||||
|
||||
void onRewardedVideoAdReady() {
|
||||
if (this.OnRewardedVideoAdReady != null) {
|
||||
this.OnRewardedVideoAdReady();
|
||||
}
|
||||
}
|
||||
|
||||
void onRewardedVideoAdLoadFailed(string args) {
|
||||
if (this.OnRewardedVideoAdLoadFailed!=null) {
|
||||
List<object> argList = IronSourceJSON.Json.Deserialize(args) as List<object>;
|
||||
IronSourceError err = IronSourceUtils.getErrorFromErrorObject(argList[0]);
|
||||
this.OnRewardedVideoAdLoadFailed(err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 162f04ac2f3144bc4ad9e99237db3e42
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,34 +0,0 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public class IronSourceSegmentAndroid : AndroidJavaProxy, IUnitySegment
|
||||
{
|
||||
public event Action<string> OnSegmentRecieved = delegate { };
|
||||
|
||||
//implements UnitySegmentListener java interface
|
||||
public IronSourceSegmentAndroid():base(IronSourceConstants.segmentBridgeListenerClass)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
using (var pluginClass = new AndroidJavaClass(IronSourceConstants.bridgeClass))
|
||||
{
|
||||
var bridgeInstance = pluginClass.CallStatic<AndroidJavaObject>("getInstance");
|
||||
bridgeInstance.Call("setUnitySegmentListener", this);
|
||||
}
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
Debug.LogError("setUnitySegmentListener method doesn't exist, error: " + e.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void onSegmentRecieved(string segmentName){
|
||||
if(OnSegmentRecieved != null)
|
||||
{
|
||||
OnSegmentRecieved(segmentName);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e9c33ca154a7a4bb99bd609264612359
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue