private void OnTriggerStay(Collider other) { Box box = other.GetComponent <Box>(); if (box != null) { box.AddConveyorSpeed(Dir); // add the correct direction } }