public void OnPointerUp(PointerEventData eventData) { //We dragged the object, so we're not taking a picture if (m_TakePicture == false) { return; } m_PictureCamera.TakePicture(); }
private void TakePicture() { if (input.inpLeftClick && cameraOpen && !cameraOnCooldown) { cameraAnimator.Play("CameraShutter"); pictureCamera.TakePicture(); cameraOnCooldown = true; } }