C# Class SubtitlesLogic, Hellbound

Subtitle behaviour. All the logic for the subtitles system Created by Simon Jonasson
Inheritance: MonoBehaviour
Show file Open project: Backman/Hellbound

Private Properties

Property Type Description
awaitTime IEnumerator
feedLine IEnumerator
feedText IEnumerator

Public Methods

Method Description
clearLables ( ) : IEnumerator
initialize ( UILabel, subtitleseLabels ) : void
showSubtitles ( object args ) : IEnumerator

Private Methods

Method Description
awaitTime ( float waitTime ) : IEnumerator

Will wait for waitTime seconds before returning

feedLine ( object args ) : IEnumerator

Displays the actual line of text to the player, character by character

feedText ( object args ) : IEnumerator

This function handles the logic about which line of text should be displayed to the player Args[0] = (string) the text Args[1] = (bool) allow quick skip Args[2] = (string) scroll method Args[3] = (obj) scroll method argument Args[4] = (bool) Line Padding Args[5] = (bool) Using sounds (true if acceptable path found) Args[6] = (string) SoundPath Args[7] = (vector3) SoundPosition

Method Details

clearLables() public method

public clearLables ( ) : IEnumerator
return IEnumerator

initialize() public method

public initialize ( UILabel, subtitleseLabels ) : void
subtitleseLabels UILabel,
return void

showSubtitles() public method

public showSubtitles ( object args ) : IEnumerator
args object
return IEnumerator