private void SelectModel() { ResetAll(); gameObject.SetActive(true); x = transform.localPosition.x; y = transform.localPosition.y; z = transform.localPosition.z; Debug.Log(x + ", " + y + ", " + z); scaleX = transform.localScale.x; scaleY = transform.localScale.y; scaleZ = transform.localScale.z; existingRotation = transform.rotation; if (PositionDictionary.Data.ContainsKey(gameObject.name)) { transform.localPosition = PositionDictionary.Data[gameObject.name]; } else { transform.localPosition = new Vector3(0.0f, y, 0.0f); } ResetButtonScript.SetModelPosition(UnselectModel); SliderScript.SetTextData(gameObject.name); leanScaleScript.enabled = true; if (capsuleObject) { capsuleObject.SetActive(false); } }