Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Storage
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
wanqing
Storage
Commits
2848994f
Commit
2848994f
authored
Mar 19, 2021
by
wanqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改预制体
parent
6ae96ef2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1575 additions
and
2041 deletions
+1575
-2041
StorageView.cs
Storage/Assets/#A2_Scripts/Battle/View/StorageView.cs
+9
-9
Level3.prefab
Storage/Assets/Res/Levels/Level3.prefab
+1566
-2032
No files found.
Storage/Assets/#A2_Scripts/Battle/View/StorageView.cs
View file @
2848994f
...
@@ -237,17 +237,17 @@ public class StorageView : MonoBehaviour
...
@@ -237,17 +237,17 @@ public class StorageView : MonoBehaviour
m_fixedRigidBody
[
i
].
isKinematic
=
false
;
m_fixedRigidBody
[
i
].
isKinematic
=
false
;
}
}
}
}
for
(
int
i
=
0
;
i
<
m_targetTrans
.
Length
;
i
++)
//
for (int i = 0; i < m_targetTrans.Length; i++)
{
//
{
m_targetTrans
[
i
].
GetComponent
<
Rigidbody
>().
constraints
=
RigidbodyConstraints
.
FreezeRotationX
|
RigidbodyConstraints
.
FreezeRotationY
//
m_targetTrans[i].GetComponent<Rigidbody>().constraints = RigidbodyConstraints.FreezeRotationX | RigidbodyConstraints.FreezeRotationY
|
RigidbodyConstraints
.
FreezeRotationZ
;
//
| RigidbodyConstraints.FreezeRotationZ;
}
//
}
if
(
value
)
if
(
value
)
{
{
//
for (int i = 0; i < m_targetTrans.Length; i++)
for
(
int
i
=
0
;
i
<
m_targetTrans
.
Length
;
i
++)
//
{
{
//
m_targetTrans[i].GetComponent<Rigidbody>().isKinematic = true;
m_targetTrans
[
i
].
GetComponent
<
Rigidbody
>().
isKinematic
=
true
;
//
}
}
m_animator
.
Play
(
"成功动画"
);
m_animator
.
Play
(
"成功动画"
);
}
}
else
else
...
...
Storage/Assets/Res/Levels/Level3.prefab
View file @
2848994f
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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