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
10a9014d
Commit
10a9014d
authored
Jun 23, 2021
by
zhangzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大图广告进入主场景后再加载
parent
b41b8bb5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
Splash.cs
Assets/Scripts/Splash/Splash.cs
+6
-1
StartControl.cs
Assets/Scripts/StartControl.cs
+3
-0
No files found.
Assets/Scripts/Splash/Splash.cs
View file @
10a9014d
...
...
@@ -185,9 +185,11 @@ public class Splash : MonoBehaviour
AdManager
.
Instance
.
LoadSplashAd
(
new
SplshAdListener
(
this
));
}
AdManager
.
Instance
.
LoadCacheRewardVideoAd
(
"video"
);
AdManager
.
Instance
.
LoadCacheFeedAd
(
"bigimage"
);
AdManager
.
Instance
.
LoadCacheInterstitialAd
(
"Interstitial"
);
AdManager
.
Instance
.
LoadCacheBannerAd
(
"banner"
);
#if UNITY_ANDROID
AdManager
.
Instance
.
LoadCacheFeedAd
(
"bigimage"
);
#endif
}
private
sealed
class
SplshAdListener
:
ZXADSplashListener
...
...
@@ -289,6 +291,9 @@ public class Splash : MonoBehaviour
////点击微信登录
public
void
ClickLogin
()
{
DeviceLogin
();
return
;
EventUtils
.
OnEvent
(
"wx_page_login_btn_click"
);
WxLoginUtil
.
Instance
.
OnClickWxLogin
(
new
Action
<
bool
>((
wxLoginResult
)
=>
...
...
Assets/Scripts/StartControl.cs
View file @
10a9014d
...
...
@@ -124,6 +124,9 @@ public class StartControl : MonoBehaviour
yield
return
new
WaitForSeconds
(
1F
);
EventUtils
.
OnEvent
(
"tab_imp"
);
StopCoroutine
(
"ReportTabImp"
);
#if UNITY_IOS
AdManager
.
Instance
.
LoadCacheFeedAd
(
"bigimage"
);
#endif
}
...
...
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