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
0c28490e
Commit
0c28490e
authored
Jul 01, 2021
by
LiLiuZhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
1453d971
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
197 additions
and
77 deletions
+197
-77
BasePanel.cs
Assets/FunScripts/UI/BasePanel.cs
+1
-1
LeeMainController.cs
Assets/Game/Main/Resource/LeeScripts/LeeMainController.cs
+19
-2
NeedMoreEXP.cs
Assets/Game/Main/Resource/LeeScripts/NeedMoreEXP.cs
+60
-0
NeedMoreEXP.cs.meta
Assets/Game/Main/Resource/LeeScripts/NeedMoreEXP.cs.meta
+11
-0
ReceiveDiamondPanel.cs
Assets/Game/Main/Resource/LeeScripts/ReceiveDiamondPanel.cs
+10
-1
TiXianCell.cs
Assets/Game/Main/Resource/LeeScripts/TiXianCell.cs
+12
-3
CrazyCar.unity
Assets/Game/Main/Scenes/CrazyCar.unity
+69
-53
DialogControl.cs
Assets/Game/Main/Scripts/View/DialogControl.cs
+2
-4
packages-lock.json
Packages/packages-lock.json
+13
-13
No files found.
Assets/FunScripts/UI/BasePanel.cs
View file @
0c28490e
...
...
@@ -21,7 +21,7 @@ public abstract class BasePanel : MonoBehaviour
private
void
GetAllControls
<
T
>()
where
T
:
UIBehaviour
{
T
[]
controls
=
GetComponentsInChildren
<
T
>();
T
[]
controls
=
GetComponentsInChildren
<
T
>(
true
);
for
(
int
i
=
0
;
i
<
controls
.
Length
;
i
++)
{
...
...
Assets/Game/Main/Resource/LeeScripts/LeeMainController.cs
View file @
0c28490e
...
...
@@ -49,8 +49,20 @@ public class LeeMainController : MonoBehaviour
{
Transform
Content
=
ZhongCaiTiXian
.
Find
(
"MainBK/SV/Viewport/Content"
);
ZhongCaiTiXian
.
Find
(
"MainBK/btnClose"
).
GetComponent
<
Button
>().
onClick
.
RemoveAllListeners
();
ZhongCaiTiXian
.
Find
(
"MainBK/btnClose"
).
GetComponent
<
Button
>().
onClick
.
AddListener
(
HideZhongCaiTiXianPanel
);
ZhongCaiTiXian
.
Find
(
"btnClose"
).
GetComponent
<
Button
>().
onClick
.
RemoveAllListeners
();
ZhongCaiTiXian
.
Find
(
"btnClose"
).
GetComponent
<
Button
>().
onClick
.
AddListener
(
HideZhongCaiTiXianPanel
);
if
(
Content
.
childCount
!=
0
)
{
for
(
int
i
=
0
;
i
<
model
.
wdDataList
.
Count
;
i
++)
{
Content
.
GetChild
(
i
).
GetComponent
<
TiXianCell
>().
Init
(
model
.
wdDataList
[
i
]);
}
return
;
}
for
(
int
i
=
0
;
i
<
model
.
wdDataList
.
Count
;
i
++)
{
...
...
@@ -63,6 +75,11 @@ public class LeeMainController : MonoBehaviour
});
}
public
void
ClearZhongCaiTiXianPanel
()
{
}
public
void
HideZhongCaiTiXianPanel
()
{
Transform
Content
=
ZhongCaiTiXian
.
Find
(
"MainBK/SV/Viewport/Content"
);
...
...
Assets/Game/Main/Resource/LeeScripts/NeedMoreEXP.cs
0 → 100644
View file @
0c28490e
using
System
;
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine.UI
;
public
class
NeedMoreEXP
:
MonoBehaviour
{
public
Text
Line1
;
public
Text
Line2
;
private
int
?
id
;
private
void
Awake
()
{
Init
();
}
public
void
Init
()
{
//WithDrawDialogBean
transform
.
Find
(
"btnClose"
).
GetComponent
<
Button
>().
onClick
.
AddListener
(
Hide
);
transform
.
Find
(
"MainBK/btnOK"
).
GetComponent
<
Button
>().
onClick
.
AddListener
(()
=>
{
AdUtils
.
PlayRewardAd
(
"GET_EXP"
,
new
Action
<
bool
>((
cb
)
=>
{
if
(
cb
)
{
DialogControl
.
Instance
.
NetWorkRequest
<
WithDrawDialogBean
>(
false
,
"app/v2/cscmnq/wd_addExp"
,
new
Dictionary
<
string
,
object
>()
{
{
"uid"
,
(
int
)
id
}
},
(
_
)
=>
{
LeeMainController
.
Instance
.
UpdateZhongCaiTiXianPanel
();
Hide
();
});
}
else
{
Hide
();
}
}));
});
}
public
void
Show
(
int
?
id
,
WithDrawDialogBean
model
)
{
this
.
id
=
id
;
Line1
.
text
=
model
.
title
;
gameObject
.
SetActive
(
true
);
}
public
void
Hide
()
{
gameObject
.
SetActive
(
false
);
}
}
Assets/Game/Main/Resource/LeeScripts/NeedMoreEXP.cs.meta
0 → 100644
View file @
0c28490e
fileFormatVersion: 2
guid: 2e0827e5ab1b83e4488b25683b190cce
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/Game/Main/Resource/LeeScripts/ReceiveDiamondPanel.cs
View file @
0c28490e
...
...
@@ -4,9 +4,18 @@ using System.Collections.Generic;
using
UnityEngine
;
using
UnityEngine.UI
;
public
class
ReceiveDiamondPanel
:
MonoBehaviour
public
class
ReceiveDiamondPanel
:
MonoBehaviour
{
public
bool
IsInit
;
public
static
ReceiveDiamondPanel
Instance
;
private
void
Awake
()
{
Instance
=
this
;
Init
();
}
public
void
Init
()
{
transform
.
Find
(
"MainBK/btnClose"
).
GetComponent
<
Button
>().
onClick
.
AddListener
(()
=>
...
...
Assets/Game/Main/Resource/LeeScripts/TiXianCell.cs
View file @
0c28490e
using
System.Collections
;
using
System.Collections.Generic
;
using
ToastPlugin
;
using
UnityEngine
;
using
UnityEngine.UI
;
...
...
@@ -23,10 +24,18 @@ public class TiXianCell : BasePanel
case
2
:
GetControl
<
Button
>(
"btnGo"
).
onClick
.
AddListener
(()
=>
{
Debug
.
LogError
(
info
.
id
);
DialogControl
.
Instance
.
NetWorkRequest
<
object
>(
false
,
"app/v2/cscmnq/do_wd"
,
new
Dictionary
<
string
,
object
>()
{
{
"wdId"
,(
int
)
info
.
id
}
},(
obj
)=>
DialogControl
.
Instance
.
NetWorkRequest
<
WithDrawDialogBean
>(
false
,
"app/v2/cscmnq/do_wd"
,
new
Dictionary
<
string
,
object
>()
{
{
"wdId"
,(
int
)
info
.
id
}
},(
obj
)=>
{
switch
(
obj
.
status
)
{
case
1
:
case
2
:
case
3
:
case
7
:
ToastHelper
.
ShowToast
(
obj
.
reason
);
return
;
}
DialogControl
.
Instance
.
nme
.
Show
(
info
.
id
,
obj
);
});
});
...
...
Assets/Game/Main/Scenes/CrazyCar.unity
View file @
0c28490e
...
...
@@ -3028,7 +3028,6 @@ RectTransform:
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1541119557}
- {fileID: 2030695797}
- {fileID: 596913243}
m_Father: {fileID: 1824402362}
...
...
@@ -9658,9 +9657,9 @@ RectTransform:
m_Father: {fileID: 1548415916}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y:
1
}
m_AnchorMax: {x: 0, y:
1
}
m_AnchoredPosition: {x: 355, y:
-72.5
}
m_AnchorMin: {x: 0, y:
0
}
m_AnchorMax: {x: 0, y:
0
}
m_AnchoredPosition: {x: 355, y:
0
}
m_SizeDelta: {x: 710, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &300181110
...
...
@@ -20863,7 +20862,7 @@ RectTransform:
m_Children:
- {fileID: 359346045}
m_Father: {fileID: 92939073}
m_RootOrder:
2
m_RootOrder:
1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
...
...
@@ -26226,14 +26225,14 @@ MonoBehaviour:
path:
wpLengths:
- 0
- 1
1.212016
- 5.5
597563
- 1
0.90613
- 5.5
463805
- 6.1961856
type: 1
subdivisionsXSegment: 10
subdivisions: 40
wps:
- {x: -
3.5024998, y: 2.955
, z: 100}
- {x: -
2.8756156, y: 2.4261084
, z: 100}
- {x: -1.3436712, y: -1.5280215, z: 90}
- {x: 0.21024093, y: 3.2540216, z: 90}
- {x: 3.7466066, y: -1.7448426, z: 90}
...
...
@@ -26242,7 +26241,7 @@ MonoBehaviour:
b: {x: 0, y: 0, z: 0}
- a: {x: 7.2829723, y: -6.7437067, z: 90}
b: {x: 0, y: 0, z: 0}
length: 22.
983376
length: 22.
663618
isFinalized: 1
timesTable:
- 0.025
...
...
@@ -26286,46 +26285,46 @@ MonoBehaviour:
- 0.975
- 1
lengthsTable:
- 0.15
471439
- 0.5
889805
- 1.2
580361
- 2.
1171157
- 3.
1214933
- 4.
22649
6
- 5.
387515
- 6.
560059
5
- 7.
69980
96
- 8.
762795
- 9.
705688
- 10.
4866905
- 1
1.068326
- 11.
458006
- 11.
790817
- 1
2.147154
- 12.
5613785
- 1
3.035387
- 13.
555864
- 1
4.102991
- 14.
654059
- 1
5.185122
- 15.
6720
2
- 1
6.091513
- 16.
423817
- 16.
66177
- 16.
849846
- 1
7.07897
- 17.
374407
- 17.
73803
- 1
8.163519
- 18.
64145
- 1
9.161064
- 19.
710953
-
20.279375
- 20.
854437
- 21.
424185
- 21.
976715
- 22.
500265
- 22.
983376
- 0.15
035214
- 0.5
723822
- 1.2
226055
- 2.
0575345
- 3.
0337222
- 4.
107777
6
- 5.
236377
- 6.
376318
5
- 7.
48457
96
- 8.
518503
- 9.
436096
- 10.
196958
- 1
0.765153
- 11.
149754
- 11.
484675
- 1
1.845319
- 12.
262508
- 1
2.737176
- 13.
256148
- 1
3.800106
- 14.
346965
- 1
4.873441
- 15.
35606
2
- 1
5.772276
- 16.
102968
- 16.
341343
- 16.
530088
- 1
6.759212
- 17.
05465
- 17.
418272
- 1
7.843761
- 18.
321693
- 1
8.841307
- 19.
391195
-
19.959618
- 20.
53468
- 21.
104427
- 21.
656958
- 22.
180508
- 22.
663618
inspectorMode: 0
pathType: 1
handlesType: 0
...
...
@@ -36878,6 +36877,7 @@ GameObject:
- component: {fileID: 1132365598}
- component: {fileID: 1132365600}
- component: {fileID: 1132365599}
- component: {fileID: 1132365601}
m_Layer: 5
m_Name: NeedMoreEXP
m_TagString: Untagged
...
...
@@ -36944,6 +36944,20 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1132365597}
m_CullTransparentMesh: 0
--- !u!114 &1132365601
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1132365597}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 2e0827e5ab1b83e4488b25683b190cce, type: 3}
m_Name:
m_EditorClassIdentifier:
Line1: {fileID: 5808459}
Line2: {fileID: 539065261}
--- !u!1 &1135140078
GameObject:
m_ObjectHideFlags: 0
...
...
@@ -50183,12 +50197,12 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1541119556}
m_LocalRotation: {x:
0, y: 0, z:
0, w: 1}
m_LocalRotation: {x:
-0, y: -0, z: -
0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID:
92939073
}
m_RootOrder:
0
m_Father: {fileID:
1824402362
}
m_RootOrder:
1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
...
...
@@ -60337,6 +60351,7 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 92939073}
- {fileID: 1541119557}
m_Father: {fileID: 2052625159}
m_RootOrder: 26
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
...
...
@@ -66035,7 +66050,7 @@ RectTransform:
- {fileID: 1405951376}
- {fileID: 60622861}
m_Father: {fileID: 92939073}
m_RootOrder:
1
m_RootOrder:
0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
...
...
@@ -66692,6 +66707,7 @@ MonoBehaviour:
RealAwards: {fileID: 3336770981114390305, guid: c8a7c6a15b5684cebbd1bbb8dec4d3b6,
type: 3}
rdp: {fileID: 1520725255}
nme: {fileID: 1132365601}
--- !u!1 &2053463148
GameObject:
m_ObjectHideFlags: 0
Assets/Game/Main/Scripts/View/DialogControl.cs
View file @
0c28490e
...
...
@@ -51,6 +51,8 @@ public class DialogControl : MonoBehaviour
public
ReceiveDiamondPanel
rdp
;
public
NeedMoreEXP
nme
;
private
void
Awake
()
{
Instance
=
this
;
...
...
@@ -541,12 +543,8 @@ public class DialogControl : MonoBehaviour
EventUtils
.
OnEvent
(
"addDiamond_click"
,
"点击钻石加号"
);
HttpTool
.
Instance
.
_Get
(
"app/v2/cscmnq/diamond_by_video_status"
,
null
,
new
Action
<
DiamondStatusBean
>((
bean
)
=>
{
<<<<<<<
HEAD
DiamondRewardNum
=
bean
.
rewardDiamondNum
;
=======
DiamondplayNum
=
bean
.
playNum
;
>>>>>>>
203
a308827d9b9dae2a93e572f7d221941fe2445
if
(
DiamondplayNum
>
0
)
{
rdp
.
Show
(
bean
.
rewardDiamondNum
);
...
...
Packages/packages-lock.json
View file @
0c28490e
...
...
@@ -19,7 +19,7 @@
"dependencies"
:
{
"com.unity.ugui"
:
"1.0.0"
},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.analytics"
:
{
"version"
:
"3.3.5"
,
...
...
@@ -28,21 +28,21 @@
"dependencies"
:
{
"com.unity.ugui"
:
"1.0.0"
},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.collab-proxy"
:
{
"version"
:
"1.2.16"
,
"depth"
:
0
,
"source"
:
"registry"
,
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.ext.nunit"
:
{
"version"
:
"1.0.6"
,
"depth"
:
1
,
"source"
:
"registry"
,
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.ide.rider"
:
{
"version"
:
"1.1.4"
,
...
...
@@ -51,14 +51,14 @@
"dependencies"
:
{
"com.unity.test-framework"
:
"1.1.1"
},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.ide.vscode"
:
{
"version"
:
"1.2.3"
,
"depth"
:
0
,
"source"
:
"registry"
,
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.multiplayer-hlapi"
:
{
"version"
:
"1.0.8"
,
...
...
@@ -67,7 +67,7 @@
"dependencies"
:
{
"nuget.mono-cecil"
:
"0.1.6-preview"
},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.purchasing"
:
{
"version"
:
"2.2.1"
,
...
...
@@ -76,7 +76,7 @@
"dependencies"
:
{
"com.unity.ugui"
:
"1.0.0"
},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.test-framework"
:
{
"version"
:
"1.1.20"
,
...
...
@@ -87,7 +87,7 @@
"com.unity.modules.imgui"
:
"1.0.0"
,
"com.unity.modules.jsonserialize"
:
"1.0.0"
},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.textmeshpro"
:
{
"version"
:
"2.1.1"
,
...
...
@@ -96,14 +96,14 @@
"dependencies"
:
{
"com.unity.ugui"
:
"1.0.0"
},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.timeline"
:
{
"version"
:
"1.2.17"
,
"depth"
:
0
,
"source"
:
"registry"
,
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.ugui"
:
{
"version"
:
"1.0.0"
,
...
...
@@ -122,14 +122,14 @@
"com.unity.modules.vr"
:
"1.0.0"
,
"com.unity.modules.xr"
:
"1.0.0"
},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"nuget.mono-cecil"
:
{
"version"
:
"0.1.6-preview"
,
"depth"
:
1
,
"source"
:
"registry"
,
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.modules.ai"
:
{
"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