Click/Touch to play animation?

Simple question maybe,

I want to click on Sphere, and other object : Box play animation (rotate)

peace!

Typically, the easiest way is to initialize a reference to your box inside your Sphere script, or whatever script is calling the animations. You could either do this through the inspector by setting a public variable, or initializing it in Start while your level is loading.

public GameObject cachedBox;

and assign it in the inspector, or:

Start()
{
     GameObject cachedBox = GameObject.Find("BoxNameGoesHere");
}

After the variable has been assigned and declared, you can simply call animation play states from the GameObject inside your Sphere script:

cachedBox.animation.Play( "rotate" );