I have kept a First Person Controller. I have assigned a button to call FPS in my game. If i pressed the button again, the FPS should re-position to its original position. I am looking for C# scripts. Any Suggestions would be Appreciated.
public Vector3 camoriginposition;
void Start() {
camoriginposition = Camera.main.transform.position;
}
public void ButtonMethod()
{
Camera.main.transform.position = camoriginposition ;
}