Skip to content

Commit 10762d9

Browse files
author
ויויאן אומנסקי
committed
fix
1 parent 46be910 commit 10762d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/Scripts/SlidingGateController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ private void OnTriggerEnter2D(Collider2D collision)
99
if (collision.CompareTag("Ball")) // Ensure the ball is tagged correctly
1010
{
1111
Debug.Log("Switch Activated!");
12-
12+
1313
JointMotor2D motor = new JointMotor2D
1414
{
15-
motorSpeed = -5f,
15+
motorSpeed = -5f,
1616
maxMotorTorque = 1000f
1717
};
1818
gateJoint.motor = motor;

0 commit comments

Comments
 (0)