예제 #1
0
 private void OnTriggerExit(Collider other)
 {
     //print("out of something");
     if (other.tag == "ring")
     {
         //print("out of ring");
         rb.useGravity  = true;
         bc.enabled     = false;
         rb.constraints = RigidbodyConstraints.None;
         sm.canMove     = false;
         //rb.mass = 100;
         sm.stopHit();
         //rb.velocity = new Vector3(rb.velocity.x*0.08f, rb.velocity.y, rb.velocity.z*0.08f);
     }
 }