Ejemplo n.º 1
0
        private void OnTriggerExit(Collider other)
        {
            if (!UnityExtensions.Contains(this._waterLayer, ((Component)other).get_gameObject().get_layer()))
            {
                return;
            }
            Rigidbody component = (Rigidbody)((Component)other).GetComponent <Rigidbody>();

            if (Object.op_Equality((Object)component, (Object)null) || !this._rigidbodies.Contains(component))
            {
                return;
            }
            this._rigidbodies.Remove(component);
        }