Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StockRunning
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
czy
StockRunning
Commits
7053fad0
Commit
7053fad0
authored
Apr 23, 2021
by
czy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改特效
parent
14c0a833
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2623 additions
and
1893 deletions
+2623
-1893
DemoScenes.unity
StockRunning/Assets/#A1_Scenes/DemoScenes.unity
+91
-0
AIMove.cs
StockRunning/Assets/My/Scripts/AI/AIMove.cs
+2
-1
EndPoint.cs
StockRunning/Assets/My/Scripts/EndPoint.cs
+9
-2
PlayerMove.cs
StockRunning/Assets/My/Scripts/Player/PlayerMove.cs
+2
-1
Level1.prefab
StockRunning/Assets/Prefabs/Level1.prefab
+2144
-1831
Level2My.prefab
StockRunning/Assets/Prefabs/Level2My.prefab
+375
-58
No files found.
StockRunning/Assets/#A1_Scenes/DemoScenes.unity
View file @
7053fad0
...
...
@@ -2171,6 +2171,7 @@ Transform:
-
{
fileID
:
1135058816
}
-
{
fileID
:
57808292
}
-
{
fileID
:
690225410
}
-
{
fileID
:
1360783063
}
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
5
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
...
...
@@ -2432,6 +2433,12 @@ Transform:
type
:
3
}
m_PrefabInstance
:
{
fileID
:
6185819660585071757
}
m_PrefabAsset
:
{
fileID
:
0
}
---
!u!4
&1360783063
stripped
Transform
:
m_CorrespondingSourceObject
:
{
fileID
:
4577623434983755210
,
guid
:
8763e2bb63234c441beb751dddbb4cdd
,
type
:
3
}
m_PrefabInstance
:
{
fileID
:
1964729678
}
m_PrefabAsset
:
{
fileID
:
0
}
---
!u!1
&1370655875
GameObject
:
m_ObjectHideFlags
:
0
...
...
@@ -3308,6 +3315,90 @@ Transform:
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
4
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!1001
&1964729678
PrefabInstance
:
m_ObjectHideFlags
:
0
serializedVersion
:
2
m_Modification
:
m_TransformParent
:
{
fileID
:
1147898531
}
m_Modifications
:
-
target
:
{
fileID
:
4577623434983755210
,
guid
:
8763e2bb63234c441beb751dddbb4cdd
,
type
:
3
}
propertyPath
:
m_LocalPosition.x
value
:
0.16999996
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
4577623434983755210
,
guid
:
8763e2bb63234c441beb751dddbb4cdd
,
type
:
3
}
propertyPath
:
m_LocalPosition.y
value
:
-2.522961
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
4577623434983755210
,
guid
:
8763e2bb63234c441beb751dddbb4cdd
,
type
:
3
}
propertyPath
:
m_LocalPosition.z
value
:
-38.424053
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
4577623434983755210
,
guid
:
8763e2bb63234c441beb751dddbb4cdd
,
type
:
3
}
propertyPath
:
m_LocalRotation.x
value
:
-0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
4577623434983755210
,
guid
:
8763e2bb63234c441beb751dddbb4cdd
,
type
:
3
}
propertyPath
:
m_LocalRotation.y
value
:
1
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
4577623434983755210
,
guid
:
8763e2bb63234c441beb751dddbb4cdd
,
type
:
3
}
propertyPath
:
m_LocalRotation.z
value
:
-0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
4577623434983755210
,
guid
:
8763e2bb63234c441beb751dddbb4cdd
,
type
:
3
}
propertyPath
:
m_LocalRotation.w
value
:
0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
4577623434983755210
,
guid
:
8763e2bb63234c441beb751dddbb4cdd
,
type
:
3
}
propertyPath
:
m_RootOrder
value
:
7
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
4577623434983755210
,
guid
:
8763e2bb63234c441beb751dddbb4cdd
,
type
:
3
}
propertyPath
:
m_LocalEulerAnglesHint.x
value
:
0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
4577623434983755210
,
guid
:
8763e2bb63234c441beb751dddbb4cdd
,
type
:
3
}
propertyPath
:
m_LocalEulerAnglesHint.y
value
:
180
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
4577623434983755210
,
guid
:
8763e2bb63234c441beb751dddbb4cdd
,
type
:
3
}
propertyPath
:
m_LocalEulerAnglesHint.z
value
:
0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
4577623434983755210
,
guid
:
8763e2bb63234c441beb751dddbb4cdd
,
type
:
3
}
propertyPath
:
m_LocalScale.x
value
:
1.01454
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
4581089602044013720
,
guid
:
8763e2bb63234c441beb751dddbb4cdd
,
type
:
3
}
propertyPath
:
m_Name
value
:
dungeon-wall-stone
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
4581089602044013720
,
guid
:
8763e2bb63234c441beb751dddbb4cdd
,
type
:
3
}
propertyPath
:
m_TagString
value
:
Wall
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
4581089602044013720
,
guid
:
8763e2bb63234c441beb751dddbb4cdd
,
type
:
3
}
propertyPath
:
m_IsActive
value
:
0
objectReference
:
{
fileID
:
0
}
m_RemovedComponents
:
[]
m_SourcePrefab
:
{
fileID
:
100100000
,
guid
:
8763e2bb63234c441beb751dddbb4cdd
,
type
:
3
}
---
!u!1
&2006766444
GameObject
:
m_ObjectHideFlags
:
0
...
...
StockRunning/Assets/My/Scripts/AI/AIMove.cs
View file @
7053fad0
...
...
@@ -686,7 +686,8 @@ public class AIMove : MonoBehaviour
}
public
void
PlayParticle
()
{
particleChange
.
Play
();
ParticleSystem
copyParticle
=
Instantiate
(
particleChange
,
particleChange
.
transform
.
position
,
particleChange
.
transform
.
rotation
);
copyParticle
.
Play
();
}
private
void
OnDestroy
()
{
...
...
StockRunning/Assets/My/Scripts/EndPoint.cs
View file @
7053fad0
...
...
@@ -5,7 +5,7 @@ using UnityEngine;
public
class
EndPoint
:
MonoBehaviour
{
[
Header
(
"游戏胜利特效"
)]
public
ParticleSystem
particleGameWin
;
public
List
<
ParticleSystem
>
particleGameWins
;
void
Start
()
{
BattleCtrl
.
instance
.
gameWin
+=
gameWin
;
...
...
@@ -32,7 +32,14 @@ public class EndPoint : MonoBehaviour
}
public
void
gameWin
()
{
particleGameWin
.
Play
();
foreach
(
var
ps
in
particleGameWins
)
{
PlayParticle
(
ps
);
}
}
public
void
PlayParticle
(
ParticleSystem
ps
)
{
ps
.
Play
();
}
private
void
OnDestroy
()
{
...
...
StockRunning/Assets/My/Scripts/Player/PlayerMove.cs
View file @
7053fad0
...
...
@@ -575,7 +575,8 @@ public class PlayerMove : MonoBehaviour
public
void
PlayParticle
()
{
particleChange
.
Play
();
ParticleSystem
copyParticle
=
Instantiate
(
particleChange
,
particleChange
.
transform
.
position
,
particleChange
.
transform
.
rotation
);
copyParticle
.
Play
();
}
private
void
OnDestroy
()
...
...
StockRunning/Assets/Prefabs/Level1.prefab
View file @
7053fad0
This diff is collapsed.
Click to expand it.
StockRunning/Assets/Prefabs/Level2My.prefab
View file @
7053fad0
This diff is collapsed.
Click to expand it.
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