Component.animation Manual     Reference     Scripting  
Scripting > Runtime Classes > Component
Component.animation

var animation : Animation

Description

The Animation attached to this GameObject (null if there is none attached).

JavaScript
animation.Play();