Skip to content

Commit

Permalink
Update SimpleSmoothMouseLookNewInput.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
unitycoder authored Nov 29, 2021
1 parent 0ffc6eb commit 0cd5d2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Assets/Scripts/Camera/SimpleSmoothMouseLookNewInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void Awake()

private void Start()
{
if (ReferenceManager.instance != null) ReferenceManager.instance.mouseControls = this;

}

private void OnEnable()
Expand Down Expand Up @@ -199,14 +199,14 @@ void CameraFly()
var vert = -Keyboard.current.sKey.ReadValue() + Keyboard.current.wKey.ReadValue();
if (vert != 0)
{
moveTransform.Translate(transform.forward * flySpeed * EloManager.instance.camSpeedMultiplier * vert * Time.deltaTime, Space.World);
moveTransform.Translate(transform.forward * flySpeed * vert * Time.deltaTime, Space.World);
moved = true;
}

var horz = -Keyboard.current.aKey.ReadValue() + Keyboard.current.dKey.ReadValue();
if (horz != 0)
{
moveTransform.Translate(transform.right * flySpeed * EloManager.instance.camSpeedMultiplier * horz * Time.deltaTime, Space.World);
moveTransform.Translate(transform.right * flySpeed * horz * Time.deltaTime, Space.World);
moved = true;
}

Expand Down

0 comments on commit 0cd5d2f

Please sign in to comment.