public void TransformRentgenPhoto() { if (behidnScreen && _DELTA_ALT != Vector3.zero) { float interval = MathematicAndfunctions.GetInterval(MathematicAndfunctions._GetNewMaximumPotentiometrValue(_NEW_MAX_HEIGHT_BY_USER)); rentgen_Ph.transform.position += new Vector3(0, ((_DELTA_ALT.y * -1) * interval), 0); _DELTA_ALT = Vector3.zero; //IMPORTANT: WE HAVE TO ZEROING D_ALT AFTER IT WAS USED TO TRANSLATION } }
public void OnContinueClick() { var result = t.text.Trim(' ', 'c', 'm'); MainApplicationController.gameObject.GetComponent <MainApplicationController>()._NEW_MAX_HEIGHT_BY_USER = Convert.ToInt32(result); float Y = MathematicAndfunctions._GetPictureYPosition_FromPotentiometr( MathematicAndfunctions._GetNewMaximumPotentiometrValue(MainApplicationController.gameObject.GetComponent <MainApplicationController>()._NEW_MAX_HEIGHT_BY_USER), MainApplicationController.gameObject.GetComponent <MainApplicationController>()._ALTITUDE); if (Y != 0) { MainApplicationController.gameObject.GetComponent <MainApplicationController>().rentgen_Ph.transform.position = new Vector3(97, Y, 90); } StartCoroutine(Display_XRayPhoto_With_AudioEffect()); }