mirror of
https://github.com/Steffo99/gravity-fusion.git
synced 2024-11-21 16:04:18 +00:00
Add Reset Camera key
This commit is contained in:
parent
820f132f8b
commit
0bf3867eb2
2 changed files with 19 additions and 0 deletions
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue