override public void Start()
 {
     localQua = ObjectItem.transform.localRotation;
     // mPinchType = Hi5_Object_Pinch_Type.ELeft;
     ObjectItem.CleanRecord();
     //mObjectItem.ChangeColor (Color.cyan);
 }
Exemple #2
0
        override public void Start()
        {
            localQua = ObjectItem.transform.localRotation;
            // mPinchType = Hi5_Object_Pinch_Type.ELeft;
            ObjectItem.CleanRecord();
            if (mObjectItem.gameObject.GetComponent <Rigidbody>() != null)
            {
                mObjectItem.gameObject.GetComponent <Rigidbody>().Sleep();

#if UNITY_2017_2_OR_NEWER
#else
                mObjectItem.transform.gameObject.GetComponent <Rigidbody>().WakeUp();
#endif
            }

            //mObjectItem.ChangeColor (Color.cyan);
            //if (Hi5_Interaction_Const.TestModifyConstraints)
            ObjectItem.SetIsKinematic(true);
        }