File tree Expand file tree Collapse file tree 3 files changed +6
-14
lines changed
Demo/API_V2/Assets/API/Ad Expand file tree Collapse file tree 3 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -79,13 +79,13 @@ private void SwitchAdState()
79
79
80
80
private Action < WXTextResponse > ShowSuccess = ( res ) =>
81
81
{
82
- WX . ShowModal ( new ShowModalOption ( ) { content = "CustomAd Show Success:" + JsonUtility . ToJson ( res ) } ) ;
82
+ WX . ShowModal ( new ShowModalOption ( ) { content = "CustomAd Show Success:" + JsonUtility . ToJson ( res ) } ) ;
83
83
} ;
84
84
85
85
86
86
private Action < WXTextResponse > ShowFail = ( res ) =>
87
87
{
88
- WX . ShowModal ( new ShowModalOption ( ) { content = "CustomAd Show Fail:" + JsonUtility . ToJson ( res ) } ) ;
88
+ WX . ShowModal ( new ShowModalOption ( ) { content = "CustomAd Show Fail:" + JsonUtility . ToJson ( res ) } ) ;
89
89
} ;
90
90
91
91
// 销毁广告
Original file line number Diff line number Diff line change @@ -65,13 +65,13 @@ private void ShowAd()
65
65
66
66
private Action < WXTextResponse > ShowSuccess = ( res ) =>
67
67
{
68
- WX . ShowModal ( new ShowModalOption ( ) { content = "InterstitialAd Show Success:" + JsonUtility . ToJson ( res ) } ) ;
68
+ WX . ShowModal ( new ShowModalOption ( ) { content = "InterstitialAd Show Success:" + JsonUtility . ToJson ( res ) } ) ;
69
69
} ;
70
70
71
71
72
72
private Action < WXTextResponse > ShowFail = ( res ) =>
73
73
{
74
- WX . ShowModal ( new ShowModalOption ( ) { content = "InterstitialAd Show Fail:" + JsonUtility . ToJson ( res ) } ) ;
74
+ WX . ShowModal ( new ShowModalOption ( ) { content = "InterstitialAd Show Fail:" + JsonUtility . ToJson ( res ) } ) ;
75
75
} ;
76
76
77
77
Original file line number Diff line number Diff line change @@ -64,28 +64,20 @@ protected override void TestAPI(string[] args)
64
64
WX . ShowToast ( new ShowToastOption ( ) { title = "已创建并加载广告" } ) ;
65
65
}
66
66
67
- // 展示广告
68
- // private void ShowAd()
69
- // {
70
- // _rewardedVideoAd.Show();
71
- // WX.ShowToast(new ShowToastOption() { title = "已展示广告" });
72
- // }
73
-
74
-
75
67
private void ShowAd ( )
76
68
{
77
69
_rewardedVideoAd . Show ( ShowSuccess , ShowFail ) ;
78
70
}
79
71
80
72
private Action < WXTextResponse > ShowSuccess = ( res ) =>
81
73
{
82
- WX . ShowModal ( new ShowModalOption ( ) { content = "RewardedVideoAd Show Success:" + JsonUtility . ToJson ( res ) } ) ;
74
+ WX . ShowModal ( new ShowModalOption ( ) { content = "RewardedVideoAd Show Success:" + JsonUtility . ToJson ( res ) } ) ;
83
75
} ;
84
76
85
77
86
78
private Action < WXTextResponse > ShowFail = ( res ) =>
87
79
{
88
- WX . ShowModal ( new ShowModalOption ( ) { content = "RewardedVideoAd Show Fail:" + JsonUtility . ToJson ( res ) } ) ;
80
+ WX . ShowModal ( new ShowModalOption ( ) { content = "RewardedVideoAd Show Fail:" + JsonUtility . ToJson ( res ) } ) ;
89
81
} ;
90
82
91
83
// 销毁广告
You can’t perform that action at this time.
0 commit comments