diff --git a/Assets/Components/CameraPan.cs b/Assets/Components/CameraPan.cs index fdae4fb..a6bd113 100644 --- a/Assets/Components/CameraPan.cs +++ b/Assets/Components/CameraPan.cs @@ -27,5 +27,8 @@ public class CameraPan : MonoBehaviour } } lastMousePosition = currentMousePosition; + if(Input.GetAxisRaw("ResetCamera") > 0) { + camera.transform.position = new Vector3(0, 0, camera.transform.position.z); + } } } diff --git a/ProjectSettings/InputManager.asset b/ProjectSettings/InputManager.asset index 19d42e0..967973a 100644 --- a/ProjectSettings/InputManager.asset +++ b/ProjectSettings/InputManager.asset @@ -165,3 +165,19 @@ InputManager: type: 0 axis: 0 joyNum: 0 + - serializedVersion: 3 + m_Name: ResetCamera + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: r + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0