transform.Translate on a specified object in the script

Hi,

simple question:

in Unity3D, by creating an object A in the hierarchy, a C # script including transform.Translate animates the object of a translation by dragging this script on the object A.

How in C #, make sure that transform.Translates’applique on another object defined in the script itself?

thanks

Not sure what you’re asking but every transform is unique. If you translate one transform, you would need to translate another by the same amount if I understand what you are looking to do.

Alternately you could put both transforms under a common parent transform and instead translate the parent, but that is not always a suitable solution.