void OnTriggerEnter(Collider other) { if (!open) { return; } MovingObject movingObject = other.GetComponent <MovingObject>(); if (movingObject != null) { Vector3 spaceTorque = (new Vector3(UnityEngine.Random.value, UnityEngine.Random.value, UnityEngine.Random.value)).normalized * spaceTorqueStrength; movingObject.EnterSpace(spaceTorque); } }