Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
W
wdlc_mjb_unity
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
wdlc_mjb_unity
Commits
909b6dae
Commit
909b6dae
authored
Apr 29, 2021
by
王雪伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
5b57d047
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
AdUtils.cs
Assets/Game/Main/Scripts/Utils/AdUtils.cs
+6
-6
No files found.
Assets/Game/Main/Scripts/Utils/AdUtils.cs
View file @
909b6dae
...
...
@@ -6,15 +6,15 @@ public class AdUtils
{
private
string
Banner
=
"banner"
;
private
string
Splash
=
"splash"
;
private
string
Feed
=
"
common_
bigimage"
;
private
string
Feed
=
"bigimage"
;
private
string
FullVideo
=
"fullvideo"
;
private
string
Reward
=
"
common_
video"
;
private
string
Reward
=
"video"
;
private
string
Interstitial
=
"Interstitial"
;
public
static
void
ShowFeedAd
(
string
actionName
)
{
AdManager
.
Instance
.
ShowCacheFeedAd
(
"
common_
bigimage"
,
actionName
);
AdManager
.
Instance
.
ShowCacheFeedAd
(
"bigimage"
,
actionName
);
}
public
static
void
CloseFeedAd
()
{
...
...
@@ -29,7 +29,7 @@ public class AdUtils
// ReportVideo(slot);
callback
(
true
);
#else
AdManager
.
Instance
.
PlayCacheRewardVideoAd
(
"
common_
video"
,
actionName
,
new
RewardAdListener
(
actionName
,
callback
));
AdManager
.
Instance
.
PlayCacheRewardVideoAd
(
"video"
,
actionName
,
new
RewardAdListener
(
actionName
,
callback
));
#endif
}
...
...
@@ -65,7 +65,7 @@ public class AdUtils
public
void
onAdClose
(
AdEntity
entity
)
{
AdManager
.
Instance
.
LoadCacheRewardVideoAd
(
"
common_
video"
);
AdManager
.
Instance
.
LoadCacheRewardVideoAd
(
"video"
);
ReportVideo
(
actionName
);
callback
(
true
);
EventCenter
.
Broadcast
(
MyEventType
.
FlyVideoRedPack
);
...
...
@@ -163,7 +163,7 @@ public class AdUtils
ReportVideo
(
slot
);
callback
(
true
);
#else
AdManager
.
Instance
.
PlayCacheRewardVideoAd
(
"
common_
video"
,
slot
,
new
RewardAdListener
(
slot
,
callback
));
AdManager
.
Instance
.
PlayCacheRewardVideoAd
(
"video"
,
slot
,
new
RewardAdListener
(
slot
,
callback
));
#endif
}
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment