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
529c389e
Commit
529c389e
authored
Jul 09, 2021
by
zhangzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
播放广告回来不显示存钱罐
parent
c61f5e2c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
24 deletions
+29
-24
WithdrawEveryDay.meta
Assets/Game/Main/Resource/ui/WithdrawEveryDay.meta
+0
-8
AdUtils.cs
Assets/Game/Main/Scripts/Utils/AdUtils.cs
+1
-2
StartControl.cs
Assets/Scripts/StartControl.cs
+15
-1
packages-lock.json
Packages/packages-lock.json
+13
-13
No files found.
Assets/Game/Main/Resource/ui/WithdrawEveryDay.meta
deleted
100644 → 0
View file @
c61f5e2c
fileFormatVersion: 2
guid: c8769dd604faf4fb9b727d8d2fe57934
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/Game/Main/Scripts/Utils/AdUtils.cs
View file @
529c389e
...
@@ -320,6 +320,7 @@ public class AdUtils
...
@@ -320,6 +320,7 @@ public class AdUtils
public
void
onInterstitialClose
()
public
void
onInterstitialClose
()
{
{
IsShowRewardAd
=
false
;
#if UNITY_IOS
#if UNITY_IOS
AdManager
.
Instance
.
LoadCacheInterstitialAd
(
"Interstitial"
);
AdManager
.
Instance
.
LoadCacheInterstitialAd
(
"Interstitial"
);
#endif
#endif
...
@@ -335,7 +336,6 @@ public class AdUtils
...
@@ -335,7 +336,6 @@ public class AdUtils
public
static
void
showFeedAd
(
string
action
)
public
static
void
showFeedAd
(
string
action
)
{
{
IsShowRewardAd
=
true
;
#if UNITY_EDITOR
#if UNITY_EDITOR
return
;
return
;
#endif
#endif
...
@@ -357,7 +357,6 @@ public class AdUtils
...
@@ -357,7 +357,6 @@ public class AdUtils
public
static
void
showBanner
(
string
action
)
public
static
void
showBanner
(
string
action
)
{
{
IsShowRewardAd
=
true
;
#if UNITY_EDITOR || UNITY_IOS
#if UNITY_EDITOR || UNITY_IOS
return
;
return
;
#endif
#endif
...
...
Assets/Scripts/StartControl.cs
View file @
529c389e
...
@@ -196,7 +196,14 @@ public class StartControl : MonoBehaviour
...
@@ -196,7 +196,14 @@ public class StartControl : MonoBehaviour
//#endif
//#endif
DialogControl
.
Instance
.
showPigBankDialog
();
#if UNITY_ANDROID
if
(!
AdUtils
.
IsShowRewardAd
)
{
DialogControl
.
Instance
.
showPigBankDialog
();
}
#endif
if
(
lastCloseTime
>
0
)
if
(
lastCloseTime
>
0
)
{
{
...
@@ -231,6 +238,13 @@ public class StartControl : MonoBehaviour
...
@@ -231,6 +238,13 @@ public class StartControl : MonoBehaviour
}
}
#endif
#endif
}
}
else
{
if
(
AdUtils
.
IsShowRewardAd
)
{
AdUtils
.
IsShowRewardAd
=
false
;
}
}
}
}
}
}
...
...
Packages/packages-lock.json
View file @
529c389e
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
"dependencies"
:
{
"dependencies"
:
{
"com.unity.ugui"
:
"1.0.0"
"com.unity.ugui"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.analytics"
:
{
"com.unity.analytics"
:
{
"version"
:
"3.3.5"
,
"version"
:
"3.3.5"
,
...
@@ -28,21 +28,21 @@
...
@@ -28,21 +28,21 @@
"dependencies"
:
{
"dependencies"
:
{
"com.unity.ugui"
:
"1.0.0"
"com.unity.ugui"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.collab-proxy"
:
{
"com.unity.collab-proxy"
:
{
"version"
:
"1.2.16"
,
"version"
:
"1.2.16"
,
"depth"
:
0
,
"depth"
:
0
,
"source"
:
"registry"
,
"source"
:
"registry"
,
"dependencies"
:
{},
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.ext.nunit"
:
{
"com.unity.ext.nunit"
:
{
"version"
:
"1.0.6"
,
"version"
:
"1.0.6"
,
"depth"
:
1
,
"depth"
:
1
,
"source"
:
"registry"
,
"source"
:
"registry"
,
"dependencies"
:
{},
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.ide.rider"
:
{
"com.unity.ide.rider"
:
{
"version"
:
"1.1.4"
,
"version"
:
"1.1.4"
,
...
@@ -51,14 +51,14 @@
...
@@ -51,14 +51,14 @@
"dependencies"
:
{
"dependencies"
:
{
"com.unity.test-framework"
:
"1.1.1"
"com.unity.test-framework"
:
"1.1.1"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.ide.vscode"
:
{
"com.unity.ide.vscode"
:
{
"version"
:
"1.2.3"
,
"version"
:
"1.2.3"
,
"depth"
:
0
,
"depth"
:
0
,
"source"
:
"registry"
,
"source"
:
"registry"
,
"dependencies"
:
{},
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.multiplayer-hlapi"
:
{
"com.unity.multiplayer-hlapi"
:
{
"version"
:
"1.0.8"
,
"version"
:
"1.0.8"
,
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
"dependencies"
:
{
"dependencies"
:
{
"nuget.mono-cecil"
:
"0.1.6-preview"
"nuget.mono-cecil"
:
"0.1.6-preview"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.purchasing"
:
{
"com.unity.purchasing"
:
{
"version"
:
"2.2.1"
,
"version"
:
"2.2.1"
,
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
"dependencies"
:
{
"dependencies"
:
{
"com.unity.ugui"
:
"1.0.0"
"com.unity.ugui"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.test-framework"
:
{
"com.unity.test-framework"
:
{
"version"
:
"1.1.20"
,
"version"
:
"1.1.20"
,
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
"com.unity.modules.imgui"
:
"1.0.0"
,
"com.unity.modules.imgui"
:
"1.0.0"
,
"com.unity.modules.jsonserialize"
:
"1.0.0"
"com.unity.modules.jsonserialize"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.textmeshpro"
:
{
"com.unity.textmeshpro"
:
{
"version"
:
"2.1.1"
,
"version"
:
"2.1.1"
,
...
@@ -96,14 +96,14 @@
...
@@ -96,14 +96,14 @@
"dependencies"
:
{
"dependencies"
:
{
"com.unity.ugui"
:
"1.0.0"
"com.unity.ugui"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.timeline"
:
{
"com.unity.timeline"
:
{
"version"
:
"1.2.17"
,
"version"
:
"1.2.17"
,
"depth"
:
0
,
"depth"
:
0
,
"source"
:
"registry"
,
"source"
:
"registry"
,
"dependencies"
:
{},
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.ugui"
:
{
"com.unity.ugui"
:
{
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
...
@@ -122,14 +122,14 @@
...
@@ -122,14 +122,14 @@
"com.unity.modules.vr"
:
"1.0.0"
,
"com.unity.modules.vr"
:
"1.0.0"
,
"com.unity.modules.xr"
:
"1.0.0"
"com.unity.modules.xr"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"nuget.mono-cecil"
:
{
"nuget.mono-cecil"
:
{
"version"
:
"0.1.6-preview"
,
"version"
:
"0.1.6-preview"
,
"depth"
:
1
,
"depth"
:
1
,
"source"
:
"registry"
,
"source"
:
"registry"
,
"dependencies"
:
{},
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.modules.ai"
:
{
"com.unity.modules.ai"
:
{
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
...
...
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