with ( oCubeParent )
{
if ( isMoving == 1 )
{
oCubeController.MovingCubes = 1;
}else
{
oCubeController.MovingCubes = 0;
oCubeController.CubesCanMove = 1;
oCubeController.Direction = "idle";
}
}
with
Block Recipe Cards (If all instances satisfy a condition)var allCubesStoppedMoving = true;
with (oCube)
{
if (isMoving)
{
allCubesStoppedMoving = false;
break;
}
}
if (allCubesStoppedMoving)
{
...
}