예제 #1
0
 public void UpdateCaptures()
 {
     captures++;
     SetCaptureIcon();
     AudioSourceExtensions.PlayClip2D(captureGet);
     CaptureFreeze();
     if (captures >= neededCaptures)
     {
         captureSuccess = true;
         endSTG         = true;
     }
 }
예제 #2
0
    private void Update()
    {
        languageSetting = (int)gameMaster.languageSetting;
        textTimer++;
        if (textIndex < textInfo.characterCount - 1 && textTimer >= textSettings[lineIndex].textBasics[basicsIndex].textDelay)
        {
            do
            {
                do
                {
                    textIndex++;
                }while (textInfo.characterInfo[textIndex].character == ' ');

                if (textSettings[lineIndex].textBasics[basicsIndex].endIndex < textIndex)
                {
                    if (textSettings[lineIndex].textBasics.Length > basicsIndex + 1)
                    {
                        basicsIndex++;
                    }
                }
            } while (textSettings[lineIndex].textBasics[basicsIndex].textDelay < 0);


            if (textSettings[lineIndex].textBasics[basicsIndex].textSound != null)
            {
                AudioSourceExtensions.PlayClip2D(textSettings[lineIndex].textBasics[basicsIndex].textSound);
            }
            textTimer = 0;
        }

        if (textIndex >= textInfo.characterCount - 1)
        {
            if (input.shootDown && lineIndex < dialogueLines[languageSetting].dialogue.Length - 1)
            {
                NextLine();
            }
        }

        PortraitProcessing();
    }