void FirstPersonCam() { if (Input.GetKeyUp(KeyCode.F10) && !isFirstCamOn) { var ini = CamControl.CAMRTS.centerTarget.transform.position; ini = new Vector3(ini.x, m.IniTerr.MathCenter.y, ini.z); firstPersonController = FirstPersonController.Create(ini); isFirstCamOn = true; CamControl.ChangeTo("First"); } else if (Input.GetKeyUp(KeyCode.F10) && isFirstCamOn) { isFirstCamOn = false; CamControl.ChangeTo("Game"); Destroy(firstPersonController.gameObject); } }