示例#1
0
    private IEnumerator FadeOutCoroutine()
    {
        // start fading
        yield return(StartCoroutine(FadeInFadeOut.FadeCanvas(canvasGroup, 1f, 0f, fadeOutRate)));

        gameObject.SetActive(false);
    }