// Use this for initialization
 void Start()
 {
     attractor = FindObjectOfType<gravityAttractor> ();
     GetComponent<Rigidbody> ().constraints = RigidbodyConstraints.FreezeRotation;
     GetComponent<Rigidbody> ().useGravity = false;
     myTransform = transform;
 }
 // Use this for initialization
 void Start()
 {
     attractor = FindObjectOfType <gravityAttractor> ();
     GetComponent <Rigidbody> ().constraints = RigidbodyConstraints.FreezeRotation;
     GetComponent <Rigidbody> ().useGravity  = false;
     myTransform = transform;
 }
 public void ChangeGravity(Collider other)
 {
     attractor = other.gameObject.GetComponent<gravityAttractor>();
 }
 public void ChangeGravity(Collider other)
 {
     attractor = other.gameObject.GetComponent <gravityAttractor>();
 }