I have a prefab which contains several gameObjects that each have an iTween event on them. I’m instantiating it with a trigger, and then need to play the tweens.
Normally I’d just use
iTweenEvent.GetEvent(Train1, "Train1").Play();
to play the tween, but I understand I can’t do that on prefabs.
I understand I need to use GetComponent to access the iTween component, but although I’ve scoured the forum, Answers and the script reference, I can’t figure out how to do it.
Thanks in advance