when I wrote like this :
if (!Touchscreen.current.primaryTouch.press.isPressed) //wether the user has touch the screen or not
{
if (isDragging)
{
LaunchTheBall();
}
else { isDragging = false; }
return;
}
when I wrote like this the next Respawn ball was not attached to the Pivot.
but when I wrote like the tutor did :
if (!Touchscreen.current.primaryTouch.press.isPressed) //wether the user has touch the screen or not
{
if (isDragging)
{
LaunchTheBall();
}
isDragging = false;
return;
}
the Re-Spwan ball was attachedd to the Pivot…
I mean my qquestion is what is the reson that using “ELSE” made the Ball ddisconnectedd from Pivot ?