i have an animator attached to a gameobject (a cicle for example), if i want to disable it i go just like this
var animator : Animator;
function Start () {
animator= GetComponent("Animator");
animator.enabled=false;
}
the problem i want to disable it but from another gameobject attached script,
we suposed that we already attached the circle(our gameobject thats got the animator) to the second gameobject’s script , how this code will be . . .
var blueCirle: GameObject;
var animator : Animator;
function Start () {
animator=blueball.Animator;
animator= GetComponent("Animator");
animator.enabled=false;
}