// Update is called once per frame void Update() { CheckZoom(); CheckPan(); #region Perform Shake if (Input.GetKeyDown(KeyCode.X)) { mTheCamera.ShakeCamera(new Vector2(3f, 3f)); GameState.sGameState.IncShakeCount(); } #endregion #region SetViewport mSmallView.SetViewportMinPos(mVX.value(), mVY.value()); mSmallView.SetViewprotSize(mVW.value(), mVH.value()); #endregion // Loading new Level if (Input.GetKeyDown(KeyCode.L)) { SceneManager.LoadScene("NewLevel"); } GameStateEcho.text = GameState.sGameState.EchoGameState(); }
// Update is called once per frame void Update() { CheckZoom(); CheckPan(); #region Perform Shake if (Input.GetKeyDown(KeyCode.X)) { mTheCamera.ShakeCamera(new Vector2(3f, 3f)); } #endregion #region SetViewport mSmallView.SetViewportMinPos(mVX.value(), mVY.value()); mSmallView.SetViewprotSize(mVW.value(), mVH.value()); #endregion }