Commit cf8e1fdf authored by wanqing's avatar wanqing

修改代码

parent 6e8e02db
......@@ -231,13 +231,6 @@ public class StorageView : MonoBehaviour
//设置结果动画
public void SetResultAnimator(bool value)
{
if(m_fixedRigidBody != null)
{
for(int i = 0;i< m_fixedRigidBody.Length;i++)
{
m_fixedRigidBody[i].isKinematic = false;
}
}
//for (int i = 0; i < m_targetTrans.Length; i++)
//{
// m_targetTrans[i].GetComponent<Rigidbody>().constraints = RigidbodyConstraints.FreezeRotationX | RigidbodyConstraints.FreezeRotationY
......@@ -253,6 +246,13 @@ public class StorageView : MonoBehaviour
}
else
{
if (m_fixedRigidBody != null)
{
for (int i = 0; i < m_fixedRigidBody.Length; i++)
{
m_fixedRigidBody[i].isKinematic = false;
}
}
m_bResult = false;
m_planeObj.SetActive(false);
m_animator.Play("失败");
......
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