public void OnPointerUp(PointerEventData eventData)
    {
        //We dragged the object, so we're not taking a picture
        if (m_TakePicture == false)
        {
            return;
        }

        m_PictureCamera.TakePicture();
    }
Beispiel #2
0
    private void TakePicture()
    {
        if (input.inpLeftClick && cameraOpen && !cameraOnCooldown)
        {
            cameraAnimator.Play("CameraShutter");

            pictureCamera.TakePicture();

            cameraOnCooldown = true;
        }
    }