Commit 3283111b authored by wanqing's avatar wanqing

修改预制体

parent 21faf582
This diff is collapsed.
...@@ -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);
} }
} }
//设置结果动画 //设置结果动画
......
...@@ -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:
...@@ -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}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment