예제 #1
0
    void CGPlay()
    {
        if (CGProcess == 0)           // 第一幕

        {
            CGImage.sprite = CG1;
            CGImage.color  = Color.black;
            effectManager.ImageFade(CGImage, 1, 1.0f);
            textContent.text = "";
            effectManager.PrintText(textContent, "February 23rd,2020.\nA military base in west America.", 0.01f);
            ++CGProcess;
            cur_time = 0;
        }
        else if (CGProcess == 1)
        {
            if (cur_time <= 3.0f || effectManager.isFading || effectManager.isPrint)
            {
                return;
            }
            textContent.text = "";
            effectManager.PrintText(textContent, "According to some report,a secretive research was in progress here.\nHowever no none knows more details...", 0.01f);
            ++CGProcess;
            cur_time = 0;
        }
        else if (CGProcess == 2)
        {
            if (cur_time <= 3.0f || effectManager.isFading || effectManager.isPrint)
            {
                return;
            }
            effectManager.ImageFade(CGImage, -1, 1.0f);
            textContent.text = "";
            ++CGProcess;
            cur_time = 0;
        }
        else if (CGProcess == 3)
        {
            if (cur_time <= 2.0f || effectManager.isFading || effectManager.isPrint)
            {
                return;
            }
            effectManager.PrintText(textContent, "Until one day.", 0.01f);
            ++CGProcess;
            cur_time = 0;
        }
        else if (CGProcess == 4)
        {
            if (cur_time <= 1.0f || effectManager.isFading || effectManager.isPrint)
            {
                return;
            }
            CGImage.sprite = CG2;
            CGImage.color  = Color.white;
            effectManager.Shake(CGUI, 2.0f, 0.1f);
            ++CGProcess;
            cur_time = 0;
        }
        else if (CGProcess == 5)
        {
            if (cur_time <= 1.0f || effectManager.isPrint || effectManager.isShaking)
            {
                return;
            }
            textContent.text = "";
            effectManager.PrintText(textContent, "A huge explosion occured,which was considered as an accident.\n", 0.01f);
            ++CGProcess;
            cur_time = 0;
        }
        else if (CGProcess == 6)
        {
            if (cur_time <= 3.0f || effectManager.isFading || effectManager.isPrint)
            {
                return;
            }
            textContent.text = "";
            effectManager.PrintText(textContent, "The explosion seriously destroy the base.Something was released...\n", 0.01f);
            ++CGProcess;
            cur_time = 0;
        }
        else if (CGProcess == 7)
        {
            if (cur_time <= 1.0f || effectManager.isFading || effectManager.isPrint)
            {
                return;
            }
            effectManager.ImageFade(CGImage, -1, 1.0f);
            ++CGProcess;
            cur_time = 0;
        }
        else if (CGProcess == 8)
        {
            if (cur_time <= 2.0f || effectManager.isFading || effectManager.isPrint)
            {
                return;
            }
            CGImage.sprite = CG3;
            CGImage.color  = Color.black;
            effectManager.ImageFade(CGImage, 1, 1.0f);
            ++CGProcess;
            cur_time = 0;
        }
        else if (CGProcess == 9)
        {
            textContent.text = "";
            effectManager.PrintText(textContent, "Something extremly terrible...\n", 0.01f);
            ++CGProcess;
            cur_time = 0;
        }
        else if (CGProcess == 10)
        {
            if (cur_time <= 2.0f || effectManager.isFading || effectManager.isPrint)
            {
                return;
            }
            textContent.text = "";
            effectManager.ImageFade(CGImage, -1, 1.0f);
            ++CGProcess;
        }
        else if (CGProcess == 11)
        {
            if (effectManager.isFading || effectManager.isPrint)
            {
                return;
            }
            CGCanvas.SetActive(false);
            isCGPlaying = false;
        }
    }