Skip to content

Instantly share code, notes, and snippets.

View reneweiser's full-sized avatar
🐢
"The only way to go fast is to go well."

René Weiser reneweiser

🐢
"The only way to go fast is to go well."
View GitHub Profile
# A BoxStarter script for use with http://boxstarter.org/WebLauncher
# Updates a Windows machine and installs a range of developer tools
# Show more info for files in Explorer
Set-WindowsExplorerOptions -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
# Enable remote desktop
Enable-RemoteDesktop
# Small taskbar
using UnityEngine;
public class BasicFpCamera : MonoBehaviour
{
[SerializeField] private Camera _camera;
[SerializeField] private Transform _body;
[SerializeField] private float _pitchMin = -60f;
[SerializeField] private float _pitchMax = 60f;
[SerializeField] private float _sensitivity = 2f;
using UnityEngine;
public class BasicFpMover : MonoBehaviour
{
private CharacterController _characterController;
private Vector3 _moveDirection;
[SerializeField] private float _speed = 6f;
private void Awake()