Skip to content

Commit

Permalink
improve: gradually change codes conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
insthync committed Apr 14, 2023
1 parent 6e2b9cc commit c1a0902
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Scripts/PlayerCharacterController2DAI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ protected override void OnDestroy()
public override void UpdatePointClickInput()
{
base.UpdatePointClickInput();
if (getMouseDown)
previousPointClickPosition = Vector3.positiveInfinity;
if (_getMouseDown)
_previousPointClickPosition = Vector3.positiveInfinity;
}

protected void OnGroundPathComplete(Path _p)
Expand Down Expand Up @@ -93,13 +93,13 @@ protected override void UpdateTargetEntityPosition(Vector3 measuringPosition, Ve
return;

if (Vector3.Distance(MovementTransform.position, targetPosition) > MIN_START_MOVE_DISTANCE &&
Vector3.Distance(previousPointClickPosition, targetPosition) > MIN_START_MOVE_DISTANCE)
Vector3.Distance(_previousPointClickPosition, targetPosition) > MIN_START_MOVE_DISTANCE)
{
measuringPositionOffsets = measuringPosition - MovementTransform.position;
expectTargetPosition = targetPosition;
expectTargetDistance = distance;
entitySeeker.StartPath(MovementTransform.position, targetPosition);
previousPointClickPosition = targetPosition;
_previousPointClickPosition = targetPosition;
}
}

Expand Down

0 comments on commit c1a0902

Please sign in to comment.