- Home /
set animation attributes for certain objects
Hi folk from a newb:)
So, simple question, I'm playing around with some animated objects. I wanna change animation attrbutes (like speed) of all the objects tagged (or in a layer) called for example "animobj". How can I get this?
Really tnx :)
Comment
Best Answer
Answer by NickCh · Dec 31, 2010 at 06:08 PM
Well if i got the picture you want something like this :
(every time the user press left mouse button all the objects with the tag "animjon will be destroyed)
var bye = GameObject.FindGameObjectsWithTag("animjob");
if(Input.GetButtonDown("Fire1")){ Destroy(bye);
}