public IEnumerator FadeWithAction(float duration, LookAtObject.ProcessObjectMethod ProcessObject, GameObject ProcesObjectArg)
    {
        LookAtObject.lockCameraRaycast = true;
        yield return(StartCoroutine(BeginFade(autoFadeOutColor, autoFadeInColor, duration)));

        ProcessObject(ProcesObjectArg);

        yield return(StartCoroutine(BeginFade(autoFadeInColor, autoFadeOutColor, duration)));

        LookAtObject.lockCameraRaycast = false;
    }
Exemple #2
0
        public IEnumerator FadeWithAction(LookAtObject.ProcessObjectMethod ProcessObject)
        {
            LookAtObject.lockCameraRaycast = true;
            yield return(StartCoroutine(BeginFade(m_FadeOutColor, m_FadeColor, teleportDuration)));

            ProcessObject();

            yield return(StartCoroutine(BeginFade(m_FadeColor, m_FadeOutColor, teleportDuration)));

            LookAtObject.lockCameraRaycast = false;
        }