public class Door : MonoBehaviour { public Animation d; void Start () { d=GetComponentInChildren<Animation>(); d.animation.Play("1"); } }