Worker barely working
This commit is contained in:
@@ -66,4 +66,12 @@ public class WorkerBeltApproachingBehaviour : AppleState
|
||||
workerAnimator.SetBool("isLifting?", true);
|
||||
workerBeltStateMAchineRef.ChangeState(2);
|
||||
}
|
||||
|
||||
public void Update()
|
||||
{
|
||||
if (ApproachingSpline.GetDirection(aproachTween.Percentage).x > 0.1)
|
||||
workerAnimator.SetBool("walkingRight?", true);
|
||||
else
|
||||
workerAnimator.SetBool("walkingRight?", false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user