If I do something like c.transform = go.transform
, when go’s transform changes, does c’s transform change too ?
I think it might, don’t have Unity available to check, but this is I think what you really want to do.
Vector3 newPosition;
public Transform targetTransform;
public Transform cTransform;
public class Example : Monobehavior
{
private void Update()
{
newPosition = targetTransform.position;
}
//Call this method whenever you need to move the cObject, if it is always, add MoveC() to Update
private void MoveC()
{
cTransform.position = newPosition;
}
}