void Update() { if (Physics.Raycast(transform.position, Vector3.down, out RaycastHit info, 2f)) { if (info.collider.tag.Equals(objectName)) { movementSystem.Slow(slowValue); } } }