public void Convert(ref Transform tr, Type type) { if (type == Type.Local) { tr.localPosition = POS.Convert(); tr.localEulerAngles = ROT.Convert(); tr.localScale = SCA.Convert(); } else { tr.position = POS.Convert(); tr.eulerAngles = ROT.Convert(); tr.localScale = SCA.Convert(); } }