Example #1
0
    private IEnumerator DelayedDisplay(FileData file)
    {
        switch (file.Extension)
        {
        case FileExtensions.JIF:
            yield return(new WaitForSeconds(0.4f));

            Viewer.Display((JifData)file);
            break;

        case FileExtensions.TXXXT:
            yield return(new WaitForSeconds(0.2f));

            Viewer.Display((TxxxtData)file);
            break;

        case FileExtensions.FAP:
            yield return(new WaitForSeconds(0.6f));

            Viewer.Display((FapData)file);
            break;

        case FileExtensions.LEL:
            yield return(new WaitForSeconds(0.2f));

            Viewer.Display((LelData)file);
            break;
        }

        ViewerCanvas.interactable   = true;
        ViewerCanvas.blocksRaycasts = true;

        isLoading = false;
    }