1
Fork 0
mirror of https://github.com/Steffo99/gravity-fusion.git synced 2024-11-22 00:14:18 +00:00

Add Reset Camera key

This commit is contained in:
Steffo 2019-10-07 00:26:32 +02:00
parent 820f132f8b
commit 0bf3867eb2
2 changed files with 19 additions and 0 deletions

View file

@ -27,5 +27,8 @@ public class CameraPan : MonoBehaviour
} }
} }
lastMousePosition = currentMousePosition; lastMousePosition = currentMousePosition;
if(Input.GetAxisRaw("ResetCamera") > 0) {
camera.transform.position = new Vector3(0, 0, camera.transform.position.z);
}
} }
} }

View file

@ -165,3 +165,19 @@ InputManager:
type: 0 type: 0
axis: 0 axis: 0
joyNum: 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