Orignal: https://gist.github.com/gboudreau/94bb0c11a6209c82418d01a59d958c93
- Install Authy desktop app (version 2.2.3; versions after that won't work).
Orignal: https://gist.github.com/gboudreau/94bb0c11a6209c82418d01a59d958c93
| using UnityEngine; | |
| [RequireComponent(typeof(Camera))] | |
| public class FlyCamera : MonoBehaviour { | |
| public float acceleration = 50; // how fast you accelerate | |
| public float accSprintMultiplier = 4; // how much faster you go when "sprinting" | |
| public float lookSensitivity = 1; // mouse look sensitivity | |
| public float dampingCoefficient = 5; // how quickly you break to a halt after you stop your input | |
| public bool focusOnEnable = true; // whether or not to focus and lock cursor immediately on enable |