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
3283111b
Commit
3283111b
authored
Mar 19, 2021
by
wanqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改预制体
parent
21faf582
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
29889 deletions
+6
-29889
DemoScenes.unity
Storage/Assets/#A1_Scenes/DemoScenes.unity
+1
-29885
StorageView.cs
Storage/Assets/#A2_Scripts/Battle/View/StorageView.cs
+2
-1
Level2.prefab
Storage/Assets/Res/Levels/Level2.prefab
+2
-2
Level3.prefab
Storage/Assets/Res/Levels/Level3.prefab
+1
-1
No files found.
Storage/Assets/#A1_Scenes/DemoScenes.unity
View file @
3283111b
This diff is collapsed.
Click to expand it.
Storage/Assets/#A2_Scripts/Battle/View/StorageView.cs
View file @
3283111b
...
@@ -11,6 +11,7 @@ public class StorageView : MonoBehaviour
...
@@ -11,6 +11,7 @@ public class StorageView : MonoBehaviour
public
Material
m_redMat
;
//红色材质球
public
Material
m_redMat
;
//红色材质球
public
GameObject
m_planeObj
;
//地板
public
GameObject
m_planeObj
;
//地板
public
Transform
m_fixedTrans
;
//内置物体
public
Transform
m_fixedTrans
;
//内置物体
public
float
m_rotateSpeed
=
1.0f
;
private
MeshCollider
m_curTargetTrans
;
//当前抓的目标
private
MeshCollider
m_curTargetTrans
;
//当前抓的目标
public
MeshCollider
curTargetTrans
=>
m_curTargetTrans
;
public
MeshCollider
curTargetTrans
=>
m_curTargetTrans
;
private
Vector3
m_offset
;
//偏移值
private
Vector3
m_offset
;
//偏移值
...
@@ -224,7 +225,7 @@ public class StorageView : MonoBehaviour
...
@@ -224,7 +225,7 @@ public class StorageView : MonoBehaviour
{
{
if
(
m_curTargetTrans
)
if
(
m_curTargetTrans
)
{
{
m_curTargetTrans
.
transform
.
Rotate
(
transform
.
up
,
1.0f
);
m_curTargetTrans
.
transform
.
Rotate
(
transform
.
up
,
m_rotateSpeed
);
}
}
}
}
//设置结果动画
//设置结果动画
...
...
Storage/Assets/Res/Levels/Level2.prefab
View file @
3283111b
...
@@ -824,7 +824,7 @@ Transform:
...
@@ -824,7 +824,7 @@ Transform:
m_GameObject: {fileID: 1864293459122168787}
m_GameObject: {fileID: 1864293459122168787}
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: 1.339, z: -0.46}
m_LocalPosition: {x: 0, y: 1.339, z: -0.46}
m_LocalScale: {x:
4, y: 0.01, z: 4
}
m_LocalScale: {x:
3, y: 0.01, z: 3
}
m_Children: []
m_Children: []
m_Father: {fileID: 49667949129306736}
m_Father: {fileID: 49667949129306736}
m_RootOrder: 1
m_RootOrder: 1
...
@@ -119590,7 +119590,7 @@ MonoBehaviour:
...
@@ -119590,7 +119590,7 @@ MonoBehaviour:
m_chainRopeView: {fileID: 0}
m_chainRopeView: {fileID: 0}
m_camera: {fileID: 9100893406668532320}
m_camera: {fileID: 9100893406668532320}
m_carView: {fileID: 0}
m_carView: {fileID: 0}
m_storageView: {fileID:
0
}
m_storageView: {fileID:
2713718237360528484
}
curLevelIndex: 1
curLevelIndex: 1
--- !u!1 &9100893407832903182
--- !u!1 &9100893407832903182
GameObject:
GameObject:
Storage/Assets/Res/Levels/Level3.prefab
View file @
3283111b
...
@@ -81371,7 +81371,7 @@ Transform:
...
@@ -81371,7 +81371,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6908995349608963687}
m_GameObject: {fileID: 6908995349608963687}
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: 1.
12
, z: -0.46}
m_LocalPosition: {x: 0, y: 1.
339
, z: -0.46}
m_LocalScale: {x: 3, y: 0.01, z: 3}
m_LocalScale: {x: 3, y: 0.01, z: 3}
m_Children: []
m_Children: []
m_Father: {fileID: 1054564016742950886}
m_Father: {fileID: 1054564016742950886}
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