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
ac248667
Commit
ac248667
authored
Jul 02, 2021
by
zhangzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
6f603512
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
43 additions
and
46 deletions
+43
-46
LeeMainController.cs
Assets/Game/Main/Resource/LeeScripts/LeeMainController.cs
+1
-0
底框.png
Assets/Game/Main/Resource/ui/dialog/haichong/底框.png
+0
-0
CrazyCar.unity
Assets/Game/Main/Scenes/CrazyCar.unity
+10
-10
TaskItem.cs
Assets/Game/Main/Scripts/Item/TaskItem.cs
+1
-1
DialogControl.cs
Assets/Game/Main/Scripts/View/DialogControl.cs
+13
-17
StickDialog.cs
Assets/Game/Main/Scripts/View/StickDialog.cs
+1
-1
CustomUnityAppController.mm
Assets/Plugins/iOS/CustomUnityAppController.mm
+3
-3
packages-lock.json
Packages/packages-lock.json
+13
-13
PackageManagerSettings.asset
ProjectSettings/PackageManagerSettings.asset
+1
-1
No files found.
Assets/Game/Main/Resource/LeeScripts/LeeMainController.cs
View file @
ac248667
...
@@ -40,6 +40,7 @@ public class LeeMainController : MonoBehaviour
...
@@ -40,6 +40,7 @@ public class LeeMainController : MonoBehaviour
TitleBG2
.
Find
(
"Fruit"
+
i
.
ToString
()
+
"/imgProcess"
).
GetComponent
<
Image
>().
fillAmount
=
(
float
)
model
.
infoList
[
i
].
current
/
(
float
)
model
.
infoList
[
i
].
targetNum
;
TitleBG2
.
Find
(
"Fruit"
+
i
.
ToString
()
+
"/imgProcess"
).
GetComponent
<
Image
>().
fillAmount
=
(
float
)
model
.
infoList
[
i
].
current
/
(
float
)
model
.
infoList
[
i
].
targetNum
;
TitleBG2
.
Find
(
"Fruit"
+
i
.
ToString
()
+
"/txtProcess"
).
GetComponent
<
Text
>().
text
=
string
.
Format
(
"{0}/{1}"
,
(
float
)
model
.
infoList
[
i
].
current
,
model
.
infoList
[
i
].
targetNum
);
TitleBG2
.
Find
(
"Fruit"
+
i
.
ToString
()
+
"/txtProcess"
).
GetComponent
<
Text
>().
text
=
string
.
Format
(
"{0}/{1}"
,
(
float
)
model
.
infoList
[
i
].
current
,
model
.
infoList
[
i
].
targetNum
);
int
woodId
=
(
int
)
model
.
infoList
[
i
].
woodId
;
int
woodId
=
(
int
)
model
.
infoList
[
i
].
woodId
;
TitleBG2
.
Find
(
"Fruit"
+
i
.
ToString
()).
GetComponent
<
Button
>().
onClick
.
RemoveAllListeners
();
TitleBG2
.
Find
(
"Fruit"
+
i
.
ToString
()).
GetComponent
<
Button
>().
onClick
.
AddListener
(()
=>
TitleBG2
.
Find
(
"Fruit"
+
i
.
ToString
()).
GetComponent
<
Button
>().
onClick
.
AddListener
(()
=>
{
{
DidSelectedToPlanting
(
woodId
);
DidSelectedToPlanting
(
woodId
);
...
...
Assets/Game/Main/Resource/ui/dialog/haichong/底框.png
View replaced file @
6f603512
View file @
ac248667
270 KB
|
W:
|
H:
586 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Assets/Game/Main/Scenes/CrazyCar.unity
View file @
ac248667
...
@@ -1200,7 +1200,7 @@ PrefabInstance:
...
@@ -1200,7 +1200,7 @@ PrefabInstance:
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3}
type: 3}
propertyPath: m_AnchoredPosition.x
propertyPath: m_AnchoredPosition.x
value: -
63
value: -
101
objectReference: {fileID: 0}
objectReference: {fileID: 0}
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3}
type: 3}
...
@@ -9657,9 +9657,9 @@ RectTransform:
...
@@ -9657,9 +9657,9 @@ RectTransform:
m_Father: {fileID: 1548415916}
m_Father: {fileID: 1548415916}
m_RootOrder: 0
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y:
0
}
m_AnchorMin: {x: 0, y:
1
}
m_AnchorMax: {x: 0, y:
0
}
m_AnchorMax: {x: 0, y:
1
}
m_AnchoredPosition: {x: 355, y:
0
}
m_AnchoredPosition: {x: 355, y:
-72.29167
}
m_SizeDelta: {x: 710, y: 0}
m_SizeDelta: {x: 710, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &300181110
--- !u!114 &300181110
...
@@ -11938,7 +11938,7 @@ PrefabInstance:
...
@@ -11938,7 +11938,7 @@ PrefabInstance:
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3}
type: 3}
propertyPath: m_AnchoredPosition.x
propertyPath: m_AnchoredPosition.x
value:
84
.5
value:
46
.5
objectReference: {fileID: 0}
objectReference: {fileID: 0}
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3}
type: 3}
...
@@ -13097,7 +13097,7 @@ RectTransform:
...
@@ -13097,7 +13097,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 1
60
, y: 61}
m_AnchoredPosition: {x: 1
22
, y: 61}
m_SizeDelta: {x: 100, y: 100}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &382383541
--- !u!1 &382383541
...
@@ -38343,7 +38343,7 @@ PrefabInstance:
...
@@ -38343,7 +38343,7 @@ PrefabInstance:
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3}
type: 3}
propertyPath: m_AnchoredPosition.x
propertyPath: m_AnchoredPosition.x
value:
213
value:
175
objectReference: {fileID: 0}
objectReference: {fileID: 0}
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3}
type: 3}
...
@@ -47147,7 +47147,7 @@ PrefabInstance:
...
@@ -47147,7 +47147,7 @@ PrefabInstance:
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3}
type: 3}
propertyPath: m_AnchoredPosition.x
propertyPath: m_AnchoredPosition.x
value: -1
34
value: -1
72
objectReference: {fileID: 0}
objectReference: {fileID: 0}
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3}
type: 3}
...
@@ -68976,7 +68976,7 @@ RectTransform:
...
@@ -68976,7 +68976,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: -0.00011
539459
}
m_AnchoredPosition: {x: 0, y: -0.00011
444092
}
m_SizeDelta: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 1}
m_Pivot: {x: 0, y: 1}
--- !u!114 &2116027665
--- !u!114 &2116027665
...
@@ -70288,7 +70288,7 @@ PrefabInstance:
...
@@ -70288,7 +70288,7 @@ PrefabInstance:
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3}
type: 3}
propertyPath: m_AnchoredPosition.x
propertyPath: m_AnchoredPosition.x
value: -
34
value: -
72
objectReference: {fileID: 0}
objectReference: {fileID: 0}
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3}
type: 3}
Assets/Game/Main/Scripts/Item/TaskItem.cs
View file @
ac248667
...
@@ -194,7 +194,7 @@ public class TaskItem : MonoBehaviour
...
@@ -194,7 +194,7 @@ public class TaskItem : MonoBehaviour
if
(
cb
)
if
(
cb
)
{
{
EventCenter
.
Broadcast
(
MyEventType
.
U
pdateTaskList
);
EventCenter
.
Broadcast
(
MyEventType
.
U
PDATE_HARVEST_DATA
,
1
);
}
}
else
else
{
{
...
...
Assets/Game/Main/Scripts/View/DialogControl.cs
View file @
ac248667
...
@@ -241,23 +241,19 @@ public class DialogControl : MonoBehaviour
...
@@ -241,23 +241,19 @@ public class DialogControl : MonoBehaviour
private
void
OnEnable
()
private
void
OnEnable
()
{
{
#if UNITY_IOS
//#if UNITY_IOS
// 害虫背景
// // 外星礼物背景
Image
EncounterpestsDialogBg
=
transform
.
Find
(
"EncounterpestsDialog/Image"
).
GetComponent
<
Image
>();
// Image FlyBoxRewardBg = transform.Find("FlyBoxReward/Image").GetComponent<Image>();
// 外星礼物背景
Image
FlyBoxRewardBg
=
transform
.
Find
(
"FlyBoxReward/Image"
).
GetComponent
<
Image
>();
// if (!Constant.Instance.shubiao)
// {
if
(!
Constant
.
Instance
.
shubiao
)
// FlyBoxRewardBg.sprite = Resources.Load<Sprite>("shubiaoBg0");
{
// }
EncounterpestsDialogBg
.
sprite
=
Resources
.
Load
<
Sprite
>(
"shubiaoBg0"
);
// else
FlyBoxRewardBg
.
sprite
=
Resources
.
Load
<
Sprite
>(
"shubiaoBg0"
);
// {
}
// FlyBoxRewardBg.sprite = Resources.Load<Sprite>("shubiaoBg1");
else
// }
{
//#endif
EncounterpestsDialogBg
.
sprite
=
Resources
.
Load
<
Sprite
>(
"shubiaoBg1"
);
FlyBoxRewardBg
.
sprite
=
Resources
.
Load
<
Sprite
>(
"shubiaoBg1"
);
}
#endif
}
}
...
...
Assets/Game/Main/Scripts/View/StickDialog.cs
View file @
ac248667
...
@@ -71,7 +71,7 @@ public class StickDialog : MonoBehaviour
...
@@ -71,7 +71,7 @@ public class StickDialog : MonoBehaviour
{
{
EventCenter
.
Broadcast
(
MyEventType
.
UPDATE_LAND_DATA
,
bean
.
landStatus
);
EventCenter
.
Broadcast
(
MyEventType
.
UPDATE_LAND_DATA
,
bean
.
landStatus
);
if
(
bean
.
rewardContent
.
currencyType
==
5
)
if
(
bean
.
rewardContent
.
currencyType
==
20
)
{
{
GameObject
.
Find
(
"Dialog"
).
GetComponent
<
DialogControl
>().
showReceiveDiamondDialog
(
bean
.
rewardContent
.
cash
.
ToString
());
GameObject
.
Find
(
"Dialog"
).
GetComponent
<
DialogControl
>().
showReceiveDiamondDialog
(
bean
.
rewardContent
.
cash
.
ToString
());
}
}
...
...
Assets/Plugins/iOS/CustomUnityAppController.mm
View file @
ac248667
...
@@ -6,12 +6,12 @@
...
@@ -6,12 +6,12 @@
#import "KeychainItemManager.h"
#import "KeychainItemManager.h"
#import "WKWebViewController.h"
#import "WKWebViewController.h"
@interface CustomAppController : UnityAppController < WXApiDelegate >
@interface Custom
Unity
AppController : UnityAppController < WXApiDelegate >
@end
@end
IMPL_APP_CONTROLLER_SUBCLASS (CustomAppController)
IMPL_APP_CONTROLLER_SUBCLASS (Custom
Unity
AppController)
@implementation CustomAppController
@implementation Custom
Unity
AppController
#if defined(__cplusplus)
#if defined(__cplusplus)
extern "C" {
extern "C" {
...
...
Packages/packages-lock.json
View file @
ac248667
...
@@ -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"
,
...
...
ProjectSettings/PackageManagerSettings.asset
View file @
ac248667
...
@@ -17,7 +17,7 @@ MonoBehaviour:
...
@@ -17,7 +17,7 @@ MonoBehaviour:
m_Registries
:
m_Registries
:
-
m_Id
:
main
-
m_Id
:
main
m_Name
:
m_Name
:
m_Url
:
https://packages.unity.c
n
m_Url
:
https://packages.unity.c
om
m_Scopes
:
[]
m_Scopes
:
[]
m_IsDefault
:
1
m_IsDefault
:
1
m_UserSelectedRegistryName
:
m_UserSelectedRegistryName
:
...
...
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