The Animation attached to this GameObject (Read Only). (Null if there is none attached).
// Use GetComponent to access the animation var other : GameObject; other.GetComponent.<Animation>().Play();
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { public GameObject other; void Example() { other.GetComponent<Animation>().Play(); } }