Skip to content

Commit

Permalink
Removed unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjosif committed Mar 28, 2020
1 parent f547409 commit 77a5438
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions UltimateAFK/AFKComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public class AFKComponent : MonoBehaviour

public Vector3 AFKLastPosition;
public Vector3 AFKLastAngle;
public int AFK079LastEnergy;

public int AFKTime = 0;
public int AFKCount = 0;
Expand Down Expand Up @@ -54,15 +53,12 @@ private void AFKChecker()

Vector3 CurrentPos = this.rh.GetPosition();
Vector3 CurrentAngle;
float CurrentEnergy = 0f;

// For some reason, GetRotationVector does not return the proper angle, so we use the camera angle from 079
if (isScp079)
{
Camera079 cam = Scp079.GetCamera(this.rh);
CurrentAngle = cam.targetPosition.position;

CurrentEnergy = Scp079.GetEnergy(rh);
}
else
CurrentAngle = this.rh.GetRotationVector();
Expand Down

0 comments on commit 77a5438

Please sign in to comment.