public void FloatAway() { transform.SetParent(null); m_Rigidbody.isKinematic = false; m_Rigidbody.useGravity = true; m_Rigidbody.AddForce(new Vector3(Random.Range(0f, 0.5f), 0f, Random.Range(0f, 0.5f)), ForceMode.VelocityChange); m_floating = true; m_Prop.ActivateAllBehaviors(); m_Prop.PauseMyCollisions(0.5f); }