public void ConvertToSerializable(Hammer hammer) { var transform = hammer.transform; var position = transform.position; x = (int)position.x; y = (int)position.y; z = (int)position.z; var eulerAngles = transform.eulerAngles; u = (int)eulerAngles.x; v = (int)eulerAngles.y; w = (int)eulerAngles.z; }
public Hammer GetHammer() { var hammer = new Hammer(); return(hammer); }