// This code is part of the Fungus library (http://fungusgames.com) maintained by Chris Gregan (http://twitter.com/gofungus). // It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE) using UnityEngine; using System.Collections; namespace Fungus { /// /// Implement this interface to be notified about Writer events. /// public interface IWriterListener { /// /// Called when a user input event (e.g. a click) has been handled by the Writer. /// void OnInput(); /// /// Called when the Writer starts writing new text. /// /// An optional audioClip sound effect can be supplied (e.g. for voiceover) void OnStart(AudioClip audioClip); /// Called when the Writer has paused writing text (e.g. on a {wi} tag). void OnPause(); /// Called when the Writer has resumed writing text. void OnResume(); /// Called when the Writer has finished writing text. /// Controls whether audio should be stopped when writing ends. void OnEnd(bool stopAudio); /// Called every time the Writer writes a new character glyph. void OnGlyph(); /// /// Called when voiceover should start. /// void OnVoiceover(AudioClip voiceOverClip); } }