コード例 #1
0
ファイル: GameController.cs プロジェクト: ozgurtt/Blockara
 private void EasterEggsArentSoEasteryWhenTheCodeIsOpenSourceIsItYouFuckdummy()
 {
     if (PD.isDemo)
     {
         return;
     }
     if (Input.GetKeyDown(medicKey))
     {
         actor1.SayThingFromXML("082");
     }
 }
コード例 #2
0
    private void StartFrame(int frame)
    {
        if (frame >= dialogArr.Count)
        {
            AdvanceToGameOrCredits();
            return;
        }
        playeractor.EndBob(); opponentactor.EndBob();
        XmlNode line      = dialogArr[frame];
        string  textToSay = line.InnerText;

        if (line.Attributes["speaker"].Value == "1" && PD.p1Char == PersistData.C.FuckingBalloon)
        {
            textToSay = "p" + new string('f', Random.Range(4, 10)) + "th" + new string('e', Random.Range(4, 10)) + "nk";
        }
        dialogueBox.StartTextFrame(textToSay);
        if (line.Attributes["speaker"].Value == "1")
        {
            UpdateActorPoseAndTextBoxName(playeractor, line.Attributes["pose"].Value);
            if (line.Attributes["voice"] != null)
            {
                playeractor.SayThingFromXML(line.Attributes["voice"].Value);
            }
        }
        else
        {
            UpdateActorPoseAndTextBoxName(opponentactor, line.Attributes["pose"].Value);
            if (line.Attributes["voice"] != null)
            {
                opponentactor.SayThingFromXML(line.Attributes["voice"].Value, true);
            }
        }
        if (line.Attributes["speed"] == null)
        {
            dialogueBox.UpdateFrameRate(1.0f);
        }
        else
        {
            dialogueBox.UpdateFrameRate(float.Parse(line.Attributes["speed"].Value));
        }
    }