How can I detect which side of a box on touch.

Hi,
how can i detect which side of a box on touch.

if( I touch right side){
cube move to forward  right side .
}
if(I touch left side/up/down)...

Thank you for help

The raycast hit gives you the surface normal.
Get an angle between the normal and 6 possible side vectors (Vector3.top, Vector3.right…), your side is where you have the smallest angle.