Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
F
First_FKQCW
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
王雪伟
First_FKQCW
Commits
fbdf378f
Commit
fbdf378f
authored
May 14, 2021
by
zxhljwl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
48e8c2af
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
323 additions
and
177 deletions
+323
-177
WithdrawShopItem.prefab
Assets/Game/Main/Prefabs/WithdrawShopItem.prefab
+56
-1
CrazyCar.unity
Assets/Game/Main/Scenes/CrazyCar.unity
+117
-133
TomorrowWithdrawBean.cs
Assets/Game/Main/Scripts/Model/TomorrowWithdrawBean.cs
+10
-0
TomorrowWithdrawBean.cs.meta
Assets/Game/Main/Scripts/Model/TomorrowWithdrawBean.cs.meta
+1
-1
WithdrawShopBean.cs
Assets/Game/Main/Scripts/Model/WithdrawShopBean.cs
+19
-0
WithdrawShopBean.cs.meta
Assets/Game/Main/Scripts/Model/WithdrawShopBean.cs.meta
+11
-0
TomorrowWithdrawDialog.cs
Assets/Game/Main/Scripts/View/TomorrowWithdrawDialog.cs
+18
-3
WithdrawShopControl.cs
Assets/Game/Main/Scripts/View/WithdrawShopControl.cs
+51
-0
WithdrawShopControl.cs.meta
Assets/Game/Main/Scripts/View/WithdrawShopControl.cs.meta
+11
-0
WithdrawShopDialog.cs
Assets/Game/Main/Scripts/View/WithdrawShopDialog.cs
+0
-39
WithdrawShopItem.cs
Assets/Game/Main/Scripts/View/WithdrawShopItem.cs
+18
-0
WithdrawShopItem.cs.meta
Assets/Game/Main/Scripts/View/WithdrawShopItem.cs.meta
+11
-0
No files found.
Assets/Game/Main/Prefabs/WithdrawShopItem.prefab
View file @
fbdf378f
...
@@ -242,7 +242,7 @@ GameObject:
...
@@ -242,7 +242,7 @@ GameObject:
-
component
:
{
fileID
:
3429054282211219241
}
-
component
:
{
fileID
:
3429054282211219241
}
-
component
:
{
fileID
:
3429054282211219240
}
-
component
:
{
fileID
:
3429054282211219240
}
m_Layer
:
5
m_Layer
:
5
m_Name
:
Text
m_Name
:
pb
Text
m_TagString
:
Untagged
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_NavMeshLayer
:
0
...
@@ -546,6 +546,7 @@ GameObject:
...
@@ -546,6 +546,7 @@ GameObject:
-
component
:
{
fileID
:
165009045593183178
}
-
component
:
{
fileID
:
165009045593183178
}
-
component
:
{
fileID
:
8678038750356840716
}
-
component
:
{
fileID
:
8678038750356840716
}
-
component
:
{
fileID
:
3843624365719166492
}
-
component
:
{
fileID
:
3843624365719166492
}
-
component
:
{
fileID
:
7977656313966607230
}
m_Layer
:
5
m_Layer
:
5
m_Name
:
button
m_Name
:
button
m_TagString
:
Untagged
m_TagString
:
Untagged
...
@@ -611,3 +612,57 @@ MonoBehaviour:
...
@@ -611,3 +612,57 @@ MonoBehaviour:
m_FillOrigin
:
0
m_FillOrigin
:
0
m_UseSpriteMesh
:
0
m_UseSpriteMesh
:
0
m_PixelsPerUnitMultiplier
:
1
m_PixelsPerUnitMultiplier
:
1
---
!u!114
&7977656313966607230
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
7109538115322957954
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
4e29b1a8efbd4b44bb3f3716e73f07ff
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Navigation
:
m_Mode
:
3
m_SelectOnUp
:
{
fileID
:
0
}
m_SelectOnDown
:
{
fileID
:
0
}
m_SelectOnLeft
:
{
fileID
:
0
}
m_SelectOnRight
:
{
fileID
:
0
}
m_Transition
:
1
m_Colors
:
m_NormalColor
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
m_HighlightedColor
:
{
r
:
0.9607843
,
g
:
0.9607843
,
b
:
0.9607843
,
a
:
1
}
m_PressedColor
:
{
r
:
0.78431374
,
g
:
0.78431374
,
b
:
0.78431374
,
a
:
1
}
m_SelectedColor
:
{
r
:
0.9607843
,
g
:
0.9607843
,
b
:
0.9607843
,
a
:
1
}
m_DisabledColor
:
{
r
:
0.78431374
,
g
:
0.78431374
,
b
:
0.78431374
,
a
:
0.5019608
}
m_ColorMultiplier
:
1
m_FadeDuration
:
0.1
m_SpriteState
:
m_HighlightedSprite
:
{
fileID
:
0
}
m_PressedSprite
:
{
fileID
:
0
}
m_SelectedSprite
:
{
fileID
:
0
}
m_DisabledSprite
:
{
fileID
:
0
}
m_AnimationTriggers
:
m_NormalTrigger
:
Normal
m_HighlightedTrigger
:
Highlighted
m_PressedTrigger
:
Pressed
m_SelectedTrigger
:
Selected
m_DisabledTrigger
:
Disabled
m_Interactable
:
1
m_TargetGraphic
:
{
fileID
:
3843624365719166492
}
m_OnClick
:
m_PersistentCalls
:
m_Calls
:
-
m_Target
:
{
fileID
:
0
}
m_MethodName
:
m_Mode
:
1
m_Arguments
:
m_ObjectArgument
:
{
fileID
:
0
}
m_ObjectArgumentAssemblyTypeName
:
m_IntArgument
:
0
m_FloatArgument
:
0
m_StringArgument
:
m_BoolArgument
:
0
m_CallState
:
2
Assets/Game/Main/Scenes/CrazyCar.unity
View file @
fbdf378f
...
@@ -176,8 +176,8 @@ MonoBehaviour:
...
@@ -176,8 +176,8 @@ MonoBehaviour:
pb: {fileID: 2092897747}
pb: {fileID: 2092897747}
button: {fileID: 238276730}
button: {fileID: 238276730}
buttonImages:
buttonImages:
- {fileID: 21300000, guid: e54dc13896ba3374ea92e5273442deb4, type: 3}
- {fileID: 21300000, guid: 4348f0c7c1761fb4d897aa5068c5ad68, type: 3}
- {fileID: 21300000, guid: 4348f0c7c1761fb4d897aa5068c5ad68, type: 3}
- {fileID: 21300000, guid: e54dc13896ba3374ea92e5273442deb4, type: 3}
--- !u!1 &4870741
--- !u!1 &4870741
GameObject:
GameObject:
m_ObjectHideFlags: 0
m_ObjectHideFlags: 0
...
@@ -17577,6 +17577,7 @@ GameObject:
...
@@ -17577,6 +17577,7 @@ GameObject:
serializedVersion: 6
serializedVersion: 6
m_Component:
m_Component:
- component: {fileID: 810355241}
- component: {fileID: 810355241}
- component: {fileID: 810355242}
m_Layer: 5
m_Layer: 5
m_Name: WithdrawShopDialog
m_Name: WithdrawShopDialog
m_TagString: Untagged
m_TagString: Untagged
...
@@ -17605,6 +17606,19 @@ RectTransform:
...
@@ -17605,6 +17606,19 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
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!114 &810355242
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 810355240}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4922b2a2f003a0a44894ee017008bdbc, type: 3}
m_Name:
m_EditorClassIdentifier:
item: {fileID: 3429054283339595958, guid: 6c693ce106d3a7e4db6fbc5836794933, type: 3}
--- !u!1 &817584552
--- !u!1 &817584552
GameObject:
GameObject:
m_ObjectHideFlags: 0
m_ObjectHideFlags: 0
...
@@ -23070,7 +23084,7 @@ PrefabInstance:
...
@@ -23070,7 +23084,7 @@ PrefabInstance:
- target: {fileID: 2853166085728200634, guid: 1053be02c113a7a45adf322c929b0cb6,
- target: {fileID: 2853166085728200634, guid: 1053be02c113a7a45adf322c929b0cb6,
type: 3}
type: 3}
propertyPath: IS_TGYZ
propertyPath: IS_TGYZ
value:
0
value:
1
objectReference: {fileID: 0}
objectReference: {fileID: 0}
- target: {fileID: 2853166085728200635, guid: 1053be02c113a7a45adf322c929b0cb6,
- target: {fileID: 2853166085728200635, guid: 1053be02c113a7a45adf322c929b0cb6,
type: 3}
type: 3}
...
@@ -26150,6 +26164,7 @@ GameObject:
...
@@ -26150,6 +26164,7 @@ GameObject:
- component: {fileID: 1232728385}
- component: {fileID: 1232728385}
- component: {fileID: 1232728387}
- component: {fileID: 1232728387}
- component: {fileID: 1232728386}
- component: {fileID: 1232728386}
- component: {fileID: 1232728388}
m_Layer: 5
m_Layer: 5
m_Name: close
m_Name: close
m_TagString: Untagged
m_TagString: Untagged
...
@@ -26213,6 +26228,60 @@ CanvasRenderer:
...
@@ -26213,6 +26228,60 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1232728384}
m_GameObject: {fileID: 1232728384}
m_CullTransparentMesh: 0
m_CullTransparentMesh: 0
--- !u!114 &1232728388
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1232728384}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 1232728386}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 2052625161}
m_MethodName: closeTomorrowWithdrawDialog
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!1 &1236187953
--- !u!1 &1236187953
GameObject:
GameObject:
m_ObjectHideFlags: 0
m_ObjectHideFlags: 0
...
@@ -26831,9 +26900,9 @@ RectTransform:
...
@@ -26831,9 +26900,9 @@ RectTransform:
m_Father: {fileID: 1578441128}
m_Father: {fileID: 1578441128}
m_RootOrder: 1
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x:
1, y: 0
}
m_AnchorMin: {x:
0, y: 1
}
m_AnchorMax: {x:
1
, y: 1}
m_AnchorMax: {x:
0
, y: 1}
m_AnchoredPosition: {x:
0, y: 0
}
m_AnchoredPosition: {x:
20, y: -435.15393
}
m_SizeDelta: {x: 20, y: -17}
m_SizeDelta: {x: 20, y: -17}
m_Pivot: {x: 1, y: 1}
m_Pivot: {x: 1, y: 1}
--- !u!114 &1264358313
--- !u!114 &1264358313
...
@@ -34769,6 +34838,8 @@ GameObject:
...
@@ -34769,6 +34838,8 @@ GameObject:
serializedVersion: 6
serializedVersion: 6
m_Component:
m_Component:
- component: {fileID: 1749066897}
- component: {fileID: 1749066897}
- component: {fileID: 1749066899}
- component: {fileID: 1749066898}
m_Layer: 5
m_Layer: 5
m_Name: Content
m_Name: Content
m_TagString: Untagged
m_TagString: Untagged
...
@@ -34786,16 +34857,54 @@ RectTransform:
...
@@ -34786,16 +34857,54 @@ RectTransform:
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_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
m_Children: []
- {fileID: 2032927087}
m_Father: {fileID: 1127482208}
m_Father: {fileID: 1127482208}
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: 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}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x:
0, y: 30
0}
m_SizeDelta: {x:
-653.86395, y: 2
0}
m_Pivot: {x: 0, y: 1}
m_Pivot: {x: 0, y: 1}
--- !u!114 &1749066898
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1749066896}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalFit: 2
m_VerticalFit: 2
--- !u!114 &1749066899
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1749066896}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Padding:
m_Left: 20
m_Right: 0
m_Top: 20
m_Bottom: 0
m_ChildAlignment: 0
m_Spacing: 0
m_ChildForceExpandWidth: 0
m_ChildForceExpandHeight: 0
m_ChildControlWidth: 1
m_ChildControlHeight: 1
m_ChildScaleWidth: 0
m_ChildScaleHeight: 0
--- !u!1 &1750397623
--- !u!1 &1750397623
GameObject:
GameObject:
m_ObjectHideFlags: 0
m_ObjectHideFlags: 0
...
@@ -39012,12 +39121,6 @@ CanvasRenderer:
...
@@ -39012,12 +39121,6 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2031802796}
m_GameObject: {fileID: 2031802796}
m_CullTransparentMesh: 0
m_CullTransparentMesh: 0
--- !u!224 &2032927087 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
m_PrefabInstance: {fileID: 3429054281843540440}
m_PrefabAsset: {fileID: 0}
--- !u!1 &2035958877
--- !u!1 &2035958877
GameObject:
GameObject:
m_ObjectHideFlags: 0
m_ObjectHideFlags: 0
...
@@ -42304,125 +42407,6 @@ PrefabInstance:
...
@@ -42304,125 +42407,6 @@ PrefabInstance:
objectReference: {fileID: 0}
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: db026780330de104d920b4c604141362, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: db026780330de104d920b4c604141362, type: 3}
--- !u!1001 &3429054281843540440
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1749066897}
m_Modifications:
- target: {fileID: 3429054283339595958, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_Name
value: WithdrawShopItem
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_SizeDelta.x
value: 622
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_SizeDelta.y
value: 140
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_AnchoredPosition.x
value: -6
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 57
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3429054283339595959, guid: 6c693ce106d3a7e4db6fbc5836794933,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 6c693ce106d3a7e4db6fbc5836794933, type: 3}
--- !u!1001 &5178687852234487987
--- !u!1001 &5178687852234487987
PrefabInstance:
PrefabInstance:
m_ObjectHideFlags: 0
m_ObjectHideFlags: 0
Assets/Game/Main/Scripts/Model/TomorrowWithdrawBean.cs
0 → 100644
View file @
fbdf378f
public
class
TomorrowWithdrawBean
{
public
int
max
;
public
string
maxStr
;
public
int
now
;
public
string
nowStr
;
public
string
title
;
public
string
text
;
public
int
status
;
}
Assets/Game/Main/Scripts/
View/WithdrawShopDialog
.cs.meta
→
Assets/Game/Main/Scripts/
Model/TomorrowWithdrawBean
.cs.meta
View file @
fbdf378f
fileFormatVersion: 2
fileFormatVersion: 2
guid:
e937aa80eb39a4845884dcb7aa183ccb
guid:
535cf9f747f49c14a849816aa5ffb1e3
MonoImporter:
MonoImporter:
externalObjects: {}
externalObjects: {}
serializedVersion: 2
serializedVersion: 2
...
...
Assets/Game/Main/Scripts/Model/WithdrawShopBean.cs
0 → 100644
View file @
fbdf378f
using
System.Collections.Generic
;
public
class
WithdrawShopBean
{
public
List
<
WD
>
upgradeWdList
;
public
class
WD
{
public
int
id
;
public
string
showCash
;
public
ProgressData
progressData
;
}
public
class
ProgressData
{
public
string
title
;
public
int
currentProgress
;
public
int
maxProgress
;
}
}
Assets/Game/Main/Scripts/Model/WithdrawShopBean.cs.meta
0 → 100644
View file @
fbdf378f
fileFormatVersion: 2
guid: fe1fe5654b3ff8341a8cf34cb10fc495
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/Game/Main/Scripts/View/TomorrowWithdrawDialog.cs
View file @
fbdf378f
...
@@ -7,6 +7,8 @@ public class TomorrowWithdrawDialog : MonoBehaviour
...
@@ -7,6 +7,8 @@ public class TomorrowWithdrawDialog : MonoBehaviour
public
Text
contentText
,
pbText
;
public
Text
contentText
,
pbText
;
public
Image
pb
,
button
;
public
Image
pb
,
button
;
public
Sprite
[]
buttonImages
;
public
Sprite
[]
buttonImages
;
public
TomorrowWithdrawBean
mData
;
void
OnEnable
()
void
OnEnable
()
{
{
...
@@ -18,10 +20,14 @@ public class TomorrowWithdrawDialog : MonoBehaviour
...
@@ -18,10 +20,14 @@ public class TomorrowWithdrawDialog : MonoBehaviour
/// </summary>
/// </summary>
private
void
GetTomorrowWithdrawData
()
private
void
GetTomorrowWithdrawData
()
{
{
HttpTool
.
Instance
.
_Get
(
"app/v1/game/module/withdrawTomorrow"
,
null
,
new
Action
<
Empty
Bean
>((
bean
)
=>
HttpTool
.
Instance
.
_Get
(
"app/v1/game/module/withdrawTomorrow"
,
null
,
new
Action
<
TomorrowWithdraw
Bean
>((
bean
)
=>
{
{
if
(
null
!=
bean
)
{
if
(
null
!=
bean
)
{
contentText
.
text
=
bean
.
text
;
pb
.
fillAmount
=
(
float
)
Math
.
Round
(((
decimal
)
bean
.
now
/
bean
.
max
),
2
);
pbText
.
text
=
bean
.
nowStr
+
"/"
+
bean
.
maxStr
;
button
.
sprite
=
buttonImages
[
bean
.
status
];
this
.
mData
=
bean
;
}
}
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
{
{
...
@@ -34,6 +40,15 @@ public class TomorrowWithdrawDialog : MonoBehaviour
...
@@ -34,6 +40,15 @@ public class TomorrowWithdrawDialog : MonoBehaviour
*/
*/
public
void
withdraw
()
public
void
withdraw
()
{
{
HttpTool
.
Instance
.
_Post
(
"app/v1/game/module/withdrawTomorrow/wd"
,
null
,
new
Action
<
EmptyBean
>((
bean
)
=>
{
if
(
null
!=
bean
)
{
GameObject
.
Find
(
"Dialog"
).
GetComponent
<
DialogControl
>().
closeTomorrowWithdrawDialog
();
}
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
{
Debug
.
unityLogger
.
Log
(
"Get 请求失败"
+
code
+
errMsg
);
}));
}
}
}
}
Assets/Game/Main/Scripts/View/WithdrawShopControl.cs
0 → 100644
View file @
fbdf378f
using
System
;
using
System.Collections.Generic
;
using
UnityEngine
;
public
class
WithdrawShopControl
:
MonoBehaviour
{
public
GameObject
item
;
public
void
OnEnable
()
{
getEverydayTaskList
();
}
/**
* 获取提现商店列表
*/
public
void
getEverydayTaskList
()
{
HttpTool
.
Instance
.
_Get
(
"app/v3/game/fkqcw/wd/info"
,
null
,
new
Action
<
WithdrawShopBean
>((
bean
)
=>
{
print
(
"请求成功==================: "
);
if
(
null
!=
bean
)
{
initData
(
bean
.
upgradeWdList
);
}
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
{
print
(
"请求失败================="
);
Debug
.
unityLogger
.
Log
(
"Get 请求失败"
+
code
+
errMsg
);
}));
}
public
void
initData
(
List
<
WithdrawShopBean
.
WD
>
list
)
{
print
(
"1"
);
for
(
int
i
=
0
;
i
<
transform
.
childCount
;
i
++)
{
Destroy
(
transform
.
GetChild
(
i
).
gameObject
);
}
print
(
"2"
);
for
(
int
i
=
0
;
i
<
list
.
Count
;
i
++)
{
print
(
"3"
);
GameObject
game
=
Instantiate
(
item
,
transform
);
game
.
name
=
""
+
i
;
//game.GetComponent<TaskItemControl>().taskType = tabPosition;
game
.
GetComponent
<
WithdrawShopItem
>().
setItemData
(
list
[
i
]);
}
}
}
Assets/Game/Main/Scripts/View/WithdrawShopControl.cs.meta
0 → 100644
View file @
fbdf378f
fileFormatVersion: 2
guid: 4922b2a2f003a0a44894ee017008bdbc
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/Game/Main/Scripts/View/WithdrawShopDialog.cs
deleted
100644 → 0
View file @
48e8c2af
using
System
;
using
UnityEngine
;
using
UnityEngine.UI
;
public
class
WithdrawShopDialog
:
MonoBehaviour
{
public
Text
contentText
,
pbText
;
public
Image
pb
,
button
;
public
Sprite
[]
buttonImages
;
void
OnEnable
()
{
GetTomorrowWithdrawData
();
}
/// <summary>
/// 获取明日提钱罐数据
/// </summary>
private
void
GetTomorrowWithdrawData
()
{
HttpTool
.
Instance
.
_Get
(
"app/v1/game/module/withdrawTomorrow"
,
null
,
new
Action
<
EmptyBean
>((
bean
)
=>
{
if
(
null
!=
bean
)
{
}
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
{
Debug
.
unityLogger
.
Log
(
"Get 请求失败"
+
code
+
errMsg
);
}));
}
/**
* 提现
*/
public
void
withdraw
()
{
}
}
Assets/Game/Main/Scripts/View/WithdrawShopItem.cs
0 → 100644
View file @
fbdf378f
using
System
;
using
UnityEngine
;
using
UnityEngine.UI
;
public
class
WithdrawShopItem
:
MonoBehaviour
{
public
Text
title
,
pbText
,
buttonText
;
public
Image
pb
;
public
void
setItemData
(
WithdrawShopBean
.
WD
data
)
{
title
.
text
=
data
.
progressData
.
title
;
pbText
.
text
=
data
.
progressData
.
currentProgress
+
"/"
+
data
.
progressData
.
maxProgress
;
buttonText
.
text
=
data
.
showCash
;
pb
.
fillAmount
=
(
float
)
Math
.
Round
(((
decimal
)
data
.
progressData
.
currentProgress
/
data
.
progressData
.
maxProgress
),
2
);
}
}
Assets/Game/Main/Scripts/View/WithdrawShopItem.cs.meta
0 → 100644
View file @
fbdf378f
fileFormatVersion: 2
guid: 01828f63f9434aa48adf1e8a049791bd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
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