mirror of
https://github.com/nothke/quality-control.git
synced 2025-09-01 08:03:43 +00:00
Fixing small bugs.
This commit is contained in:
@@ -52,8 +52,13 @@ public class CranePickDrop : MonoBehaviour
|
||||
if (state == State.Catching)
|
||||
{
|
||||
Debug.Assert(handlingBody, this);
|
||||
Debug.Assert(magnet, this);
|
||||
|
||||
if (handlingBody == null)
|
||||
{
|
||||
state = State.Idle;
|
||||
return;
|
||||
}
|
||||
|
||||
magnet.strength = magnetStrength;
|
||||
|
||||
if (magnet.IsCloseTo(handlingBody, 2f))
|
||||
|
Reference in New Issue
Block a user