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
bb0adcfa
Commit
bb0adcfa
authored
Jun 09, 2021
by
zhangzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手速红包
parent
f2905e78
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
327 additions
and
87 deletions
+327
-87
HSRPEffect.prefab
Assets/Game/Main/Prefabs/HSRPEffect.prefab
+7
-7
HandSpeedRedPacketItem.prefab
Assets/Game/Main/Prefabs/HandSpeedRedPacketItem.prefab
+205
-53
HandSpeedRedPacketItem.cs
Assets/Game/Main/Scripts/Item/HandSpeedRedPacketItem.cs
+0
-23
HandSpeedRedPacketItem.meta
Assets/Game/Main/Scripts/Item/HandSpeedRedPacketItem.meta
+8
-0
HandSpeedRedPacketItem.cs
...pts/Item/HandSpeedRedPacketItem/HandSpeedRedPacketItem.cs
+107
-0
HandSpeedRedPacketItem.cs.meta
...tem/HandSpeedRedPacketItem/HandSpeedRedPacketItem.cs.meta
+0
-0
StartControl.cs
Assets/Scripts/StartControl.cs
+0
-4
No files found.
Assets/Game/Main/Prefabs/HSRPEffect.prefab
View file @
bb0adcfa
...
@@ -173,8 +173,8 @@ ParticleSystem:
...
@@ -173,8 +173,8 @@ ParticleSystem:
startSpeed
:
startSpeed
:
serializedVersion
:
2
serializedVersion
:
2
minMaxState
:
3
minMaxState
:
3
scalar
:
1.1
scalar
:
2.5
minScalar
:
0.9
minScalar
:
2
maxCurve
:
maxCurve
:
serializedVersion
:
2
serializedVersion
:
2
m_Curve
:
m_Curve
:
...
@@ -554,8 +554,8 @@ ParticleSystem:
...
@@ -554,8 +554,8 @@ ParticleSystem:
startRotation
:
startRotation
:
serializedVersion
:
2
serializedVersion
:
2
minMaxState
:
3
minMaxState
:
3
scalar
:
1.5707963
scalar
:
6.283185
minScalar
:
-
1.5707963
minScalar
:
-
6.283185
maxCurve
:
maxCurve
:
serializedVersion
:
2
serializedVersion
:
2
m_Curve
:
m_Curve
:
...
@@ -2023,7 +2023,7 @@ ParticleSystem:
...
@@ -2023,7 +2023,7 @@ ParticleSystem:
speedModifier
:
speedModifier
:
serializedVersion
:
2
serializedVersion
:
2
minMaxState
:
0
minMaxState
:
0
scalar
:
10
scalar
:
0.4
minScalar
:
1
minScalar
:
1
maxCurve
:
maxCurve
:
serializedVersion
:
2
serializedVersion
:
2
...
@@ -3440,8 +3440,8 @@ ParticleSystem:
...
@@ -3440,8 +3440,8 @@ ParticleSystem:
curve
:
curve
:
serializedVersion
:
2
serializedVersion
:
2
minMaxState
:
3
minMaxState
:
3
scalar
:
3.141592
5
scalar
:
6.28318
5
minScalar
:
-
3.141592
5
minScalar
:
-
6.28318
5
maxCurve
:
maxCurve
:
serializedVersion
:
2
serializedVersion
:
2
m_Curve
:
m_Curve
:
...
...
Assets/Game/Main/Prefabs/HandSpeedRedPacketItem.prefab
View file @
bb0adcfa
%YAML
1.1
%YAML
1.1
%TAG
!u!
tag:unity3d.com,2011:
%TAG
!u!
tag:unity3d.com,2011:
---
!u!1
&2
097341162950283433
---
!u!1
&2
998167987457730202
GameObject
:
GameObject
:
m_ObjectHideFlags
:
0
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_CorrespondingSourceObject
:
{
fileID
:
0
}
...
@@ -8,11 +8,89 @@ GameObject:
...
@@ -8,11 +8,89 @@ GameObject:
m_PrefabAsset
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
serializedVersion
:
6
serializedVersion
:
6
m_Component
:
m_Component
:
-
component
:
{
fileID
:
2097341162950283432
}
-
component
:
{
fileID
:
2998167987457730203
}
-
component
:
{
fileID
:
2097341162950283437
}
-
component
:
{
fileID
:
2998167987457730205
}
-
component
:
{
fileID
:
2097341162950283438
}
-
component
:
{
fileID
:
2998167987457730204
}
-
component
:
{
fileID
:
2097341162950283439
}
m_Layer
:
5
-
component
:
{
fileID
:
2294260602426221768
}
m_Name
:
Text
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!224
&2998167987457730203
RectTransform
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
2998167987457730202
}
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
:
2998167987660858467
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0
,
y
:
0
}
m_AnchorMax
:
{
x
:
1
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
0
,
y
:
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!222
&2998167987457730205
CanvasRenderer
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
2998167987457730202
}
m_CullTransparentMesh
:
0
---
!u!114
&2998167987457730204
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
2998167987457730202
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
5f7201a12d95ffc409449d95f23cf332
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
0.19607843
,
g
:
0.19607843
,
b
:
0.19607843
,
a
:
1
}
m_RaycastTarget
:
1
m_Maskable
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_FontData
:
m_Font
:
{
fileID
:
10102
,
guid
:
0000000000000000e000000000000000
,
type
:
0
}
m_FontSize
:
26
m_FontStyle
:
0
m_BestFit
:
0
m_MinSize
:
10
m_MaxSize
:
52
m_Alignment
:
4
m_AlignByGeometry
:
0
m_RichText
:
1
m_HorizontalOverflow
:
0
m_VerticalOverflow
:
0
m_LineSpacing
:
1
m_Text
:
"
\u624B\u901F\u7EA2\u5305
"
---
!u!1
&2998167987660858466
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
2998167987660858467
}
-
component
:
{
fileID
:
2998167987660858470
}
-
component
:
{
fileID
:
2998167987660858469
}
-
component
:
{
fileID
:
2998167987660858468
}
-
component
:
{
fileID
:
3122745610449719299
}
m_Layer
:
5
m_Layer
:
5
m_Name
:
HandSpeedRedPacketItem
m_Name
:
HandSpeedRedPacketItem
m_TagString
:
Untagged
m_TagString
:
Untagged
...
@@ -20,41 +98,42 @@ GameObject:
...
@@ -20,41 +98,42 @@ GameObject:
m_NavMeshLayer
:
0
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
m_IsActive
:
1
---
!u!224
&2
097341162950283432
---
!u!224
&2
998167987660858467
RectTransform
:
RectTransform
:
m_ObjectHideFlags
:
0
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
2
097341162950283433
}
m_GameObject
:
{
fileID
:
2
998167987660858466
}
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
:
2097341163149218384
}
-
{
fileID
:
2998167987457730203
}
-
{
fileID
:
3783271398079750576
}
m_Father
:
{
fileID
:
0
}
m_Father
:
{
fileID
:
0
}
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.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
:
0
,
y
:
-
495
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
-
20
}
m_SizeDelta
:
{
x
:
130
,
y
:
130
}
m_SizeDelta
:
{
x
:
130
,
y
:
130
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!222
&2
097341162950283437
---
!u!222
&2
998167987660858470
CanvasRenderer
:
CanvasRenderer
:
m_ObjectHideFlags
:
0
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
2
097341162950283433
}
m_GameObject
:
{
fileID
:
2
998167987660858466
}
m_CullTransparentMesh
:
0
m_CullTransparentMesh
:
0
---
!u!114
&2
097341162950283438
---
!u!114
&2
998167987660858469
MonoBehaviour
:
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
2
097341162950283433
}
m_GameObject
:
{
fileID
:
2
998167987660858466
}
m_Enabled
:
1
m_Enabled
:
1
m_EditorHideFlags
:
0
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
fe87c0e1cc204ed48ad3b37840f39efc
,
type
:
3
}
m_Script
:
{
fileID
:
11500000
,
guid
:
fe87c0e1cc204ed48ad3b37840f39efc
,
type
:
3
}
...
@@ -77,13 +156,13 @@ MonoBehaviour:
...
@@ -77,13 +156,13 @@ MonoBehaviour:
m_FillOrigin
:
0
m_FillOrigin
:
0
m_UseSpriteMesh
:
0
m_UseSpriteMesh
:
0
m_PixelsPerUnitMultiplier
:
1
m_PixelsPerUnitMultiplier
:
1
---
!u!114
&2
097341162950283439
---
!u!114
&2
998167987660858468
MonoBehaviour
:
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
2
097341162950283433
}
m_GameObject
:
{
fileID
:
2
998167987660858466
}
m_Enabled
:
1
m_Enabled
:
1
m_EditorHideFlags
:
0
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
4e29b1a8efbd4b44bb3f3716e73f07ff
,
type
:
3
}
m_Script
:
{
fileID
:
11500000
,
guid
:
4e29b1a8efbd4b44bb3f3716e73f07ff
,
type
:
3
}
...
@@ -116,11 +195,11 @@ MonoBehaviour:
...
@@ -116,11 +195,11 @@ MonoBehaviour:
m_SelectedTrigger
:
Selected
m_SelectedTrigger
:
Selected
m_DisabledTrigger
:
Disabled
m_DisabledTrigger
:
Disabled
m_Interactable
:
1
m_Interactable
:
1
m_TargetGraphic
:
{
fileID
:
2
097341162950283438
}
m_TargetGraphic
:
{
fileID
:
2
998167987660858469
}
m_OnClick
:
m_OnClick
:
m_PersistentCalls
:
m_PersistentCalls
:
m_Calls
:
m_Calls
:
-
m_Target
:
{
fileID
:
2294260602426221768
}
-
m_Target
:
{
fileID
:
3122745610449719299
}
m_MethodName
:
DidSelectedItem
m_MethodName
:
DidSelectedItem
m_Mode
:
1
m_Mode
:
1
m_Arguments
:
m_Arguments
:
...
@@ -131,20 +210,22 @@ MonoBehaviour:
...
@@ -131,20 +210,22 @@ MonoBehaviour:
m_StringArgument
:
m_StringArgument
:
m_BoolArgument
:
0
m_BoolArgument
:
0
m_CallState
:
2
m_CallState
:
2
---
!u!114
&
2294260602426221768
---
!u!114
&
3122745610449719299
MonoBehaviour
:
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
2
097341162950283433
}
m_GameObject
:
{
fileID
:
2
998167987660858466
}
m_Enabled
:
1
m_Enabled
:
1
m_EditorHideFlags
:
0
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
35a8b4c039a3b486ca414032b522ee46
,
type
:
3
}
m_Script
:
{
fileID
:
11500000
,
guid
:
35a8b4c039a3b486ca414032b522ee46
,
type
:
3
}
m_Name
:
m_Name
:
m_EditorClassIdentifier
:
m_EditorClassIdentifier
:
HSRPEffectPrefab
:
{
fileID
:
0
}
HSRPEffectPrefab
:
{
fileID
:
2036219049125648582
,
guid
:
012db062b9c85492a8ee95cc0c71c311
,
---
!u!1
&2097341163149218385
type
:
3
}
Progress
:
{
fileID
:
3783271397225888589
}
---
!u!1
&3783271397225888587
GameObject
:
GameObject
:
m_ObjectHideFlags
:
0
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_CorrespondingSourceObject
:
{
fileID
:
0
}
...
@@ -152,73 +233,144 @@ GameObject:
...
@@ -152,73 +233,144 @@ GameObject:
m_PrefabAsset
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
serializedVersion
:
6
serializedVersion
:
6
m_Component
:
m_Component
:
-
component
:
{
fileID
:
2097341163149218384
}
-
component
:
{
fileID
:
3783271397225888586
}
-
component
:
{
fileID
:
2097341163149218390
}
-
component
:
{
fileID
:
3783271397225888588
}
-
component
:
{
fileID
:
2097341163149218391
}
-
component
:
{
fileID
:
3783271397225888589
}
m_Layer
:
5
m_Layer
:
5
m_Name
:
Text
m_Name
:
Progress
m_TagString
:
Untagged
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
m_IsActive
:
1
---
!u!224
&
2097341163149218384
---
!u!224
&
3783271397225888586
RectTransform
:
RectTransform
:
m_ObjectHideFlags
:
0
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
2097341163149218385
}
m_GameObject
:
{
fileID
:
3783271397225888587
}
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
:
[]
m_Father
:
{
fileID
:
2097341162950283432
}
m_Father
:
{
fileID
:
3783271398079750576
}
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
.5
,
y
:
0.5
}
m_AnchorMax
:
{
x
:
1
,
y
:
1
}
m_AnchorMax
:
{
x
:
0.5
,
y
:
0.5
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
401
,
y
:
3
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!222
&
2097341163149218390
---
!u!222
&
3783271397225888588
CanvasRenderer
:
CanvasRenderer
:
m_ObjectHideFlags
:
0
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
2097341163149218385
}
m_GameObject
:
{
fileID
:
3783271397225888587
}
m_CullTransparentMesh
:
0
m_CullTransparentMesh
:
0
---
!u!114
&
2097341163149218391
---
!u!114
&
3783271397225888589
MonoBehaviour
:
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
2097341163149218385
}
m_GameObject
:
{
fileID
:
3783271397225888587
}
m_Enabled
:
1
m_Enabled
:
1
m_EditorHideFlags
:
0
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
5f7201a12d95ffc409449d95f23cf332
,
type
:
3
}
m_Script
:
{
fileID
:
11500000
,
guid
:
fe87c0e1cc204ed48ad3b37840f39efc
,
type
:
3
}
m_Name
:
m_Name
:
m_EditorClassIdentifier
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
0.19607843
,
g
:
0.19607843
,
b
:
0.19607843
,
a
:
1
}
m_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
m_RaycastTarget
:
1
m_RaycastTarget
:
1
m_Maskable
:
1
m_Maskable
:
1
m_OnCullStateChanged
:
m_OnCullStateChanged
:
m_PersistentCalls
:
m_PersistentCalls
:
m_Calls
:
[]
m_Calls
:
[]
m_FontData
:
m_Sprite
:
{
fileID
:
21300000
,
guid
:
3fdea3bd452644ccf8cc3f4e73bcde57
,
type
:
3
}
m_Font
:
{
fileID
:
10102
,
guid
:
0000000000000000e000000000000000
,
type
:
0
}
m_Type
:
3
m_FontSize
:
26
m_PreserveAspect
:
0
m_FontStyle
:
0
m_FillCenter
:
1
m_BestFit
:
0
m_FillMethod
:
0
m_MinSize
:
10
m_FillAmount
:
1
m_MaxSize
:
52
m_FillClockwise
:
1
m_Alignment
:
4
m_FillOrigin
:
0
m_AlignByGeometry
:
0
m_UseSpriteMesh
:
0
m_RichText
:
1
m_PixelsPerUnitMultiplier
:
1
m_HorizontalOverflow
:
0
---
!u!1
&3783271398079750577
m_VerticalOverflow
:
0
GameObject
:
m_LineSpacing
:
1
m_ObjectHideFlags
:
0
m_Text
:
"
\u624B\u901F\u7EA2\u5305
"
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
3783271398079750576
}
-
component
:
{
fileID
:
3783271398079750578
}
-
component
:
{
fileID
:
3783271398079750579
}
m_Layer
:
5
m_Name
:
ProgressBg
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!224
&3783271398079750576
RectTransform
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
3783271398079750577
}
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
:
-
{
fileID
:
3783271397225888586
}
m_Father
:
{
fileID
:
2998167987660858467
}
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
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
-39
}
m_SizeDelta
:
{
x
:
413
,
y
:
42
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!222
&3783271398079750578
CanvasRenderer
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
3783271398079750577
}
m_CullTransparentMesh
:
0
---
!u!114
&3783271398079750579
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
3783271398079750577
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
fe87c0e1cc204ed48ad3b37840f39efc
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
m_RaycastTarget
:
1
m_Maskable
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_Sprite
:
{
fileID
:
21300000
,
guid
:
3b185ef25231345319cebed4a4dbe681
,
type
:
3
}
m_Type
:
0
m_PreserveAspect
:
0
m_FillCenter
:
1
m_FillMethod
:
4
m_FillAmount
:
1
m_FillClockwise
:
1
m_FillOrigin
:
0
m_UseSpriteMesh
:
0
m_PixelsPerUnitMultiplier
:
1
Assets/Game/Main/Scripts/Item/HandSpeedRedPacketItem.cs
deleted
100644 → 0
View file @
f2905e78
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
/// <summary>
/// 手速红包
/// </summary>
public
class
HandSpeedRedPacketItem
:
MonoBehaviour
{
/// <summary>
/// 红包弹出特效
/// </summary>
public
GameObject
HSRPEffectPrefab
;
/// <summary>
/// 手速红包点击事件
/// </summary>
public
void
DidSelectedItem
()
{
Instantiate
(
HSRPEffectPrefab
,
transform
);
}
}
Assets/Game/Main/Scripts/Item/HandSpeedRedPacketItem.meta
0 → 100644
View file @
bb0adcfa
fileFormatVersion: 2
guid: 25642cc4e8d9b4e89936de39b39bc70f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/Game/Main/Scripts/Item/HandSpeedRedPacketItem/HandSpeedRedPacketItem.cs
0 → 100644
View file @
bb0adcfa
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine.UI
;
/// <summary>
/// 手速红包
/// </summary>
public
class
HandSpeedRedPacketItem
:
MonoBehaviour
{
/// <summary>
/// 红包弹出特效
/// </summary>
public
GameObject
HSRPEffectPrefab
;
/// <summary>
/// 进度条
/// </summary>
public
Image
Progress
;
/// <summary>
/// 自动衰减的速度
/// </summary>
private
float
dropSpeed
=
0.27f
;
/// <summary>
/// 点击增加的速度
/// </summary>
private
float
addSpeed
=
0.12f
;
/// <summary>
/// 当前进度
/// </summary>
private
float
currentProgress
;
private
ParticleSystem
particleSys
;
private
ParticleSystem
.
Particle
[]
particles
;
private
void
Awake
()
{
//this.particleSys = HSRPEffectPrefab.GetComponent<ParticleSystem>();
//this.particles = new ParticleSystem.Particle[this.particleSys.main.maxParticles];
}
private
void
Update
()
{
Progress
.
fillAmount
=
currentProgress
;
if
(
currentProgress
>=
1
)
{
currentProgress
=
0
;
int
count
=
this
.
particleSys
.
GetParticles
(
this
.
particles
);
for
(
int
i
=
0
;
i
<
count
;
i
++)
{
//朝目标点插值缓动
this
.
particles
[
i
].
position
=
Vector3
.
Lerp
(
this
.
particles
[
i
].
position
,
Vector3
.
zero
,
1
);
}
this
.
particleSys
.
SetParticles
(
this
.
particles
,
count
);
}
currentProgress
=
Mathf
.
Clamp
(
currentProgress
-
dropSpeed
*
Time
.
deltaTime
,
0
,
1
);
}
/// <summary>
/// 手速红包点击事件
/// </summary>
public
void
DidSelectedItem
()
{
GameObject
gb
=
Instantiate
(
HSRPEffectPrefab
,
transform
);
this
.
particleSys
=
gb
.
GetComponent
<
ParticleSystem
>();
StartCoroutine
(
GetAllP
());
//this.particles = new ParticleSystem.Particle[this.particleSys.main.maxParticles];
//int count = particleSys.particleCount;
//for (int i = 0; i < count; i++)
//{
// //朝目标点插值缓动
// this.particles[i].position = Vector3.Lerp(this.particles[i].position, new Vector3(100, 100, 100), 1);
//}
//this.particleSys.SetParticles(this.particles, count);
currentProgress
=
Mathf
.
Clamp
(
currentProgress
+
addSpeed
,
0
,
1
);
}
IEnumerator
GetAllP
()
{
yield
return
new
WaitForSeconds
(
this
.
particleSys
.
main
.
duration
);
//this.particleSys = gb.GetComponent<ParticleSystem>();
this
.
particles
=
new
ParticleSystem
.
Particle
[
this
.
particleSys
.
main
.
maxParticles
];
int
count
=
particleSys
.
particleCount
;
for
(
int
i
=
0
;
i
<
count
;
i
++)
{
//朝目标点插值缓动
this
.
particles
[
i
].
position
=
Vector3
.
Lerp
(
this
.
particles
[
i
].
position
,
new
Vector3
(
100
,
100
,
100
),
1
);
}
this
.
particleSys
.
SetParticles
(
this
.
particles
,
count
);
}
}
Assets/Game/Main/Scripts/Item/HandSpeedRedPacketItem.cs.meta
→
Assets/Game/Main/Scripts/Item/HandSpeedRedPacketItem
/HandSpeedRedPacketItem
.cs.meta
View file @
bb0adcfa
File moved
Assets/Scripts/StartControl.cs
View file @
bb0adcfa
...
@@ -182,7 +182,6 @@ public class StartControl : MonoBehaviour
...
@@ -182,7 +182,6 @@ public class StartControl : MonoBehaviour
private
static
int
lastCloseTime
;
private
static
int
lastCloseTime
;
private
void
OnApplicationFocus
(
bool
focus
)
private
void
OnApplicationFocus
(
bool
focus
)
{
{
Debug
.
Log
(
"走没走"
);
if
(
focus
)
if
(
focus
)
{
{
//切换到前台时执行,游戏启动时执行一次
//切换到前台时执行,游戏启动时执行一次
...
@@ -251,16 +250,13 @@ public class StartControl : MonoBehaviour
...
@@ -251,16 +250,13 @@ public class StartControl : MonoBehaviour
private
void
ShowRewardAd
()
private
void
ShowRewardAd
()
{
{
Debug
.
Log
(
"显示热启动广告"
);
AdUtils
.
PlayRewardAd
(
"hot_lunch_reward"
,
new
Action
<
bool
>((
cb
)
=>
AdUtils
.
PlayRewardAd
(
"hot_lunch_reward"
,
new
Action
<
bool
>((
cb
)
=>
{
{
Debug
.
Log
(
"热启动广告启动完成"
);
if
(
cb
)
if
(
cb
)
{
{
HttpTool
.
Instance
.
_Get
(
"app/v1/cscmnq/hotStart"
,
null
,
new
Action
<
EmptyModel
>((
bean
)
=>
HttpTool
.
Instance
.
_Get
(
"app/v1/cscmnq/hotStart"
,
null
,
new
Action
<
EmptyModel
>((
bean
)
=>
{
{
EventCenter
.
Broadcast
(
MyEventType
.
FlyHongbao
);
EventCenter
.
Broadcast
(
MyEventType
.
FlyHongbao
);
Debug
.
Log
(
"热启动广告奖励接口调用成功"
);
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
{
{
...
...
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