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); }
/** * <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); }
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); }