Commit 2848994f authored by wanqing's avatar wanqing

修改预制体

parent 6ae96ef2
......@@ -237,17 +237,17 @@ public class StorageView : MonoBehaviour
m_fixedRigidBody[i].isKinematic = false;
}
}
for (int i = 0; i < m_targetTrans.Length; i++)
{
m_targetTrans[i].GetComponent<Rigidbody>().constraints = RigidbodyConstraints.FreezeRotationX | RigidbodyConstraints.FreezeRotationY
| RigidbodyConstraints.FreezeRotationZ;
}
if (value)
{
//for (int i = 0; i < m_targetTrans.Length; i++)
//{
// m_targetTrans[i].GetComponent<Rigidbody>().isKinematic = true;
// m_targetTrans[i].GetComponent<Rigidbody>().constraints = RigidbodyConstraints.FreezeRotationX | RigidbodyConstraints.FreezeRotationY
// | RigidbodyConstraints.FreezeRotationZ;
//}
if (value)
{
for (int i = 0; i < m_targetTrans.Length; i++)
{
m_targetTrans[i].GetComponent<Rigidbody>().isKinematic = true;
}
m_animator.Play("成功动画");
}
else
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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