public void ExtractFromTransform(Transform transform) { position = new MottoVector3(transform.position); rotation = new MottoVector3(transform.rotation.eulerAngles); scale = new MottoVector3(transform.localScale); }
public void ExtractFromGameObject(GameObject gameObject) { position = new MottoVector3(gameObject.transform.position); rotation = new MottoVector3(gameObject.transform.rotation.eulerAngles); scale = new MottoVector3(gameObject.transform.localScale); }