private void OnValidate() { if (WriteImageToBase) { WriteImageToBase = false; ThreadTools.StartCoroutine(writeAsBase64()); } if (WriteUrls) { WriteUrls = false; ThreadTools.StartCoroutine(writToCor()); } if (TestRawImage) { TestRawImage = false; ThreadTools.StartCoroutine(testImage()); } // Google Drive // foreach (var item in modelUrlLists.Urls) // { // if (!string.IsNullOrEmpty(item.Url)) // { // // parse // item.Url = item.Url.Replace("open?id", "uc?export=download&id"); // } // } }
public bool LoadSceneWithVideo(string nextScene, IReadOnlyList <GameObject> hideInTransition = null, float fadeTime = 1.0f) { if (m_state != State.Inactive) { return(false); } currentTime = 0; m_nextScene = nextScene; m_video.enabled = true; m_fade = 1 / (fadeTime * 0.5f); m_video.isLooping = true; m_camera.enabled = true; m_video.targetCamera = m_camera; m_video.targetCameraAlpha = 0.0f; m_video.isLooping = true; m_video.Play(); m_state = State.FadeIn; m_hideTheseWhenActivated = hideInTransition; ThreadTools.StartCoroutine(UpdateCoroutine()); return(true); }
private void OnValidate() { if (objectPoint != null) { objectPoint.position = new Vector3(point.x, point.y, 0); } if (rightBorder != null && leftBorder != null && @base != null && guessHeightObject != null) { @base.position = AsRight * width / 2; @base.localScale = new Vector3(width, @base.localScale.y, @base.localScale.z); guessHeightObject.localScale = new Vector3(width, guessHeightObject.localScale.y, guessHeightObject.localScale.z); guessHeightObject.position = @base.position + AsUp * guessHeight; rightBorder.position = leftBorder.position + AsRight * width; } if (test1) { test1 = false; ThreadTools.StartCoroutine(delayStart(() => TryCalcalate())); } if (testAngle) { testAngle = false; ThreadTools.StartCoroutine(delayStart(() => TestAngle())); } if (testReal) { testReal = false; ThreadTools.StartCoroutine(delayStart(() => TestCalculateRealPos())); } }