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
192203d3
Commit
192203d3
authored
Apr 28, 2021
by
王雪伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改广告soltName
parent
46caeb07
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
AdDemo.cs
Assets/AdSDK/AD/Demo/AdDemo.cs
+3
-3
AdUtils.cs
Assets/Game/Main/Scripts/Utils/AdUtils.cs
+1
-1
Splash.cs
Assets/Game/Splash/Splash.cs
+3
-3
No files found.
Assets/AdSDK/AD/Demo/AdDemo.cs
View file @
192203d3
...
...
@@ -29,7 +29,7 @@ public class AdDemo : MonoBehaviour
}
public
void
OnClickLoadRewardAd
()
{
AdManager
.
Instance
.
LoadCacheRewardVideoAd
(
"video"
);
AdManager
.
Instance
.
LoadCacheRewardVideoAd
(
"
common_
video"
);
//loadThread.Start();
}
...
...
@@ -37,13 +37,13 @@ public class AdDemo : MonoBehaviour
public
void
OnClickPlayRewardAd
()
{
AdManager
.
Instance
.
PlayCacheRewardVideoAd
(
"video"
,
"test"
,
new
RewardAdListener
(
this
));
AdManager
.
Instance
.
PlayCacheRewardVideoAd
(
"
common_
video"
,
"test"
,
new
RewardAdListener
(
this
));
}
//private Thread loadThread = new Thread(new LoadNextVideo());
private
void
LoadNextVideo
()
{
AdManager
.
Instance
.
LoadCacheRewardVideoAd
(
"video"
);
AdManager
.
Instance
.
LoadCacheRewardVideoAd
(
"
common_
video"
);
}
public
sealed
class
RewardAdListener
:
ZXADRewardVideoListener
{
...
...
Assets/Game/Main/Scripts/Utils/AdUtils.cs
View file @
192203d3
...
...
@@ -65,7 +65,7 @@ public class AdUtils
public
void
onAdClose
(
AdEntity
entity
)
{
AdManager
.
Instance
.
LoadCacheRewardVideoAd
(
"video"
);
AdManager
.
Instance
.
LoadCacheRewardVideoAd
(
"
common_
video"
);
ReportVideo
(
actionName
);
callback
(
true
);
EventCenter
.
Broadcast
(
MyEventType
.
FlyVideoRedPack
);
...
...
Assets/Game/Splash/Splash.cs
View file @
192203d3
...
...
@@ -119,7 +119,7 @@ public class Splash : MonoBehaviour
{
yield
return
new
WaitForSeconds
(
3f
);
AdManager
.
Instance
.
LoadSplashAd
(
new
SplshAdListener
());
AdManager
.
Instance
.
LoadCacheRewardVideoAd
(
"video"
);
AdManager
.
Instance
.
LoadCacheRewardVideoAd
(
"
common_
video"
);
}
private
sealed
class
SplshAdListener
:
ZXADSplashListener
{
...
...
@@ -244,9 +244,9 @@ public class Splash : MonoBehaviour
private
void
LoadCacheAd
()
{
//预加载激励视频广告
AdManager
.
Instance
.
LoadCacheRewardVideoAd
(
"video"
);
AdManager
.
Instance
.
LoadCacheRewardVideoAd
(
"
common_
video"
);
//预加载其他类型的广告 。。。
AdManager
.
Instance
.
LoadCacheFeedAd
(
"bigimage"
);
AdManager
.
Instance
.
LoadCacheFeedAd
(
"
common_
bigimage"
);
}
private
static
void
Login
()
...
...
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