Пример #1
0
    private void OnTriggerStay(Collider other)
    {
        Box box = other.GetComponent <Box>();

        if (box != null)
        {
            box.AddConveyorSpeed(Dir); // add the correct direction
        }
    }