Hallo, try to post my question in different way
maybe is better understood and will be answered
I will use this easy code, to activate all the animations of door, lift, and other who have two clip,
for exemple the door animation have OpenDoor and CloseDooor clips
the problem come when i try to load a specific clip from the door
in this way is called the first clip only. OpenDoor
var animatedObj1 : GameObject; // Dooor
var animatedObj2 : GameObject; // Button
function Active()
{
animatedObj1.animation.Play();
animatedObj2.animation.Play();
}
I Try
>> var AnimcCip : AnimationCilp;
to load specific clip OpenDoor or CloseDoor
and various way to do but not work at all or
even doesn't display any error loading the script
receive that's error when play
NullReferenceException: Object reference not set to an instance of an object
CameraRayReciver1.js(13,74): BCE0048: Type 'System.Type' does not support slicing.
if write directly the name of clip its work, but I need the var to reuse the script
Thanks to all can help my