public virtual void CapturePhoto() { // Divert control if we are checking the captured photo if (!checkIco.gameObject.activeInHierarchy) { deviceCamera.CapturePhoto(OnPhoto); } // Check captured photo else { OnView(); } }
/* * public void OnPreviewStart() { * * Debug.Log("Kauel: OnPreviewStart()"); * * RawImageCamera.texture = NatCamCamera.Preview; * * } * */ public void TakePhoto() { NatCamCamera.CapturePhoto(OnPhoto); //PauseCamera(); }