Beispiel #1
0
        override public void Skip()
        {
            KickStarter.dialog.KillDialog(true, true);

            SpeechLog log = new SpeechLog();

            log.lineID   = lineID;
            log.fullText = messageText;

            if (runtimeSpeaker)
            {
                log.speakerName = runtimeSpeaker.name;
                if (!noAnimation)
                {
                    runtimeSpeaker.isTalking = false;

                    if (runtimeSpeaker.GetAnimEngine() != null)
                    {
                        runtimeSpeaker.GetAnimEngine().ActionSpeechSkip(this);
                    }
                }
            }

            KickStarter.runtimeVariables.AddToSpeechLog(log);
        }
        /**
         * <summary>Adds a speech line to the game's speech log.</summary>
         * <param name = "_line">The SpeechLog variable to add</param>
         */
        public void AddToSpeechLog(SpeechLog _line)
        {
            int ID = _line.lineID;
            if (ID >= 0)
            {
                foreach (SpeechLog speechLine in speechLines)
                {
                    if (speechLine.lineID == ID)
                    {
                        speechLines.Remove (speechLine);
                        break;
                    }
                }
            }

            speechLines.Add (_line);
        }
Beispiel #3
0
        /**
         * <summary>Adds a speech line to the game's speech log.</summary>
         * <param name = "_line">The SpeechLog variable to add</param>
         */
        public void AddToSpeechLog(SpeechLog _line)
        {
            int ID = _line.lineID;

            if (ID >= 0)
            {
                foreach (SpeechLog speechLine in speechLines)
                {
                    if (speechLine.lineID == ID)
                    {
                        speechLines.Remove(speechLine);
                        break;
                    }
                }
            }

            speechLines.Add(_line);
        }
Beispiel #4
0
        public override void Skip()
        {
            KickStarter.dialog.KillDialog (true, true);

            SpeechLog log = new SpeechLog ();
            log.lineID = lineID;
            log.fullText = messageText;

            if (speaker)
            {
                log.speakerName = speaker.name;
                if (!noAnimation)
                {
                    speaker.isTalking = false;

                    if (speaker.animEngine == null)
                    {
                        speaker.ResetAnimationEngine ();
                    }

                    if (speaker.animEngine != null)
                    {
                        speaker.animEngine.ActionSpeechSkip (this);
                    }
                }
            }

            KickStarter.runtimeVariables.AddToSpeechLog (log);
        }