Animation.isPlaying

var isPlaying : boolean

Description

Are we playing any animations?

JavaScript
// Plays an animation only if we are not playing it already.
function OnMouseEnter() {
if (!animation.isPlaying)
animation.Play();
}