Ejemplo n.º 1
0
    private IEnumerator TeleportProcess()
    {
        if (loadScreen != null)
        {
            yield return(loadScreen.Show(timeIn));

            teleportation.Raise();
            yield return(new WaitForSeconds(loadScreenDuration));

            yield return(loadScreen.Hide(timeOut));
        }
        yield break;
    }