public IEnumerator End(float duration) { yield return(new WaitForSeconds(duration)); MenuUtility.LerpOutFillAmount(ArrowColor, 1f, 0.1f); MenuUtility.LerpToTransparent(ArrowColor, 1 / 2f, 0f); MenuUtility.LerpToTransparent(ArrowBase, 1f, 0f); }
public IEnumerator End() { yield return(new WaitForSeconds(LocatorArrowDuration)); MenuUtility.LerpInFillAmount(OuterBorder, 1 / 3f, 0f); MenuUtility.LerpToTransparent(Thumbnail, 1 / 2f, 0.4f); MenuUtility.LerpToTransparent(Border, 1 / 32f, 0.5f); MenuUtility.LerpToTransparent(OuterBorder, 1 / 8f, 0.5f); MenuUtility.LerpToTransparent(Background, 1 / 8f, 0.6f); while (LeanTween.isTweening(Background.gameObject)) { yield return(null); } yield return(new WaitForEndOfFrame()); Destroy(gameObject); }