修复广告相关

This commit is contained in:
DESKTOP-DDTRVOR\asus 2024-12-23 16:16:32 +08:00
parent 2bee2c42b6
commit 63e96281eb
3 changed files with 49 additions and 2 deletions

View File

@ -922,6 +922,14 @@ PrefabInstance:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 650189468646652440, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3}
propertyPath: m_AnchoredPosition.y
value: -0.0000032498758
objectReference: {fileID: 0}
- target: {fileID: 1532811897321479711, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3}
propertyPath: m_AnchoredPosition.y
value: -0.0000032498758
objectReference: {fileID: 0}
- target: {fileID: 2687063965730892539, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3}
propertyPath: m_AnchorMax.y
value: 0
@ -930,6 +938,14 @@ PrefabInstance:
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2703744668847977621, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3}
propertyPath: m_AnchoredPosition.x
value: 360.00003
objectReference: {fileID: 0}
- target: {fileID: 2703744668847977621, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0.0000118310445
objectReference: {fileID: 0}
- target: {fileID: 3005541637376198884, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3}
propertyPath: m_AnchorMax.y
value: 0
@ -950,6 +966,10 @@ PrefabInstance:
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3924915755643395529, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0.00001183105
objectReference: {fileID: 0}
- target: {fileID: 4086530264551283400, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3}
propertyPath: m_AnchorMax.x
value: 0
@ -958,6 +978,14 @@ PrefabInstance:
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4576839497981118481, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3}
propertyPath: m_AnchoredPosition.y
value: -1.4701469e-12
objectReference: {fileID: 0}
- target: {fileID: 4743637259142969288, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3}
propertyPath: m_AnchoredPosition.y
value: -0.000003553884
objectReference: {fileID: 0}
- target: {fileID: 4892172892484661290, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3}
propertyPath: m_AnchorMax.x
value: 0
@ -970,6 +998,14 @@ PrefabInstance:
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8630107263903414318, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3}
propertyPath: m_AnchoredPosition.x
value: 359.99997
objectReference: {fileID: 0}
- target: {fileID: 8630107263903414318, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3}
propertyPath: m_AnchoredPosition.y
value: -0.000010355754
objectReference: {fileID: 0}
- target: {fileID: 8734534549119924968, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3}
propertyPath: m_AnchorMax.x
value: 0
@ -982,6 +1018,14 @@ PrefabInstance:
propertyPath: m_Name
value: Canvas
objectReference: {fileID: 0}
- target: {fileID: 8849191488238675942, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3}
propertyPath: m_AnchoredPosition.x
value: 2534.0264
objectReference: {fileID: 0}
- target: {fileID: 8849191488238675942, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3}
propertyPath: m_AnchoredPosition.y
value: -0.000037788843
objectReference: {fileID: 0}
- target: {fileID: 9144618406897127126, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3}
propertyPath: m_Pivot.x
value: 0

View File

@ -36,7 +36,7 @@ public class AdMgr : MonoBehaviour
/// </summary>
private void Init()
{
string videoAdId = "8k6krp0rjl87k356al"; //激励视频广告id
string videoAdId = "52pn2m40l18b0c53hi"; //激励视频广告id
adInstance = TT.CreateRewardedVideoAd(
videoAdId,
(isClose, closeCode) => {

View File

@ -26,6 +26,9 @@ public class ADSystem
public void PlayAd(Action action)
{
action?.Invoke();
AdMgr.Instance.ShowAd((a) =>
{
action?.Invoke();
});
}
}