Hi! I am noob with script in unity 3d, i'm just new with this game engine... I wanna make a simples box animation play if the first person control hit the other box(i made this box a trigger, because i dont know how i can make other methods)...
i try to use the script:
function OnTriggerEnter(hit:Collider)
{
if(hit.gameObject.tag=="playbox") // If the FPC hit the box with tag "playbox", play the box with animation...
{
animation.Play("cu"); // This is the box with animation...
}
}
sorry my bad english...