private void Awake() { //disable the delete confirmation panel DoConfirmDeleteNo(); //create a handle for ScreenshotPreview script, //so that the methods from it can be used here ssP = GameObject.FindObjectOfType(typeof(ScreenshotPreview)) as ScreenshotPreview; }
public void ClickCapture() { if (!isDebug) { StartCoroutine(ScreenshotPreview.CaptureAndShowPreviewImage()); } else { StartCoroutine(ScreenshotPreview.CaptureAndShowPreviewImage(capturedImage)); } }
private void Awake() { //create a handle for ScreenshotPreview script, //so that the methods from it can be used here ssP = GameObject.FindObjectOfType(typeof(ScreenshotPreview)) as ScreenshotPreview; }
void Awake() { instance = this; }
void ClickCaptureButton() { StartCoroutine(ScreenshotPreview.CaptureAndShowPreviewImage()); // Start coroutine for screenshot function. }