void Update()
{
if (leg_1.text == null && leg_2.text != null && hypotenuse.text != null)
{
hypotenuse_SquareRoot = Convert.ToInt32(hypotenuse.text) * Convert.ToInt32(hypotenuse.text);
leg_2_SquareRoot = Convert.ToInt32(leg_2.text) * Convert.ToInt32(leg_2.text);
result = hypotenuse_SquareRoot - leg_2_SquareRoot;
resultText.text = "Результат:" + result.ToString();
}
}