ズームの仕方
101 2Dカメラのピンチインアウト処理 [stepism@Unityメモ]
befool.co.jp
void Update () { if(Input.GetKey(KeyCode.Space)){ PlayerPrefs.DeleteAll(); print("Reset done!"); } if(Playbutton){ orthographicSize = mainCamera.camera.orthographicSize; if (4.6f < orthographicSize) { orthographicSize = mainCamera.camera.orthographicSize; orthographicSize -= Time.deltaTime * 5f; mainCamera.camera.orthographicSize = orthographicSize; } onZoom = true; if(onZoom){ if(!Play){ StartCoroutine(PlaybuttonOnWait()); // Playbutton = false; // orthographicSize = 6.55f; } } } }