C# Class ExamineLogic, Hellbound

Examine behaviour. All logic for the Examine functions Created by Simon Jonasson
Inheritance: MonoBehaviour
ファイルを表示 Open project: Backman/Hellbound

Public Methods

Method Description
clearLables ( ) : IEnumerator
initialize ( UILabel, examineLabels, UISprite, nextSprite, float textSpeed, float newLineWait, bool doLinePadding ) : void
showText ( object args ) : IEnumerator

Private Methods

Method Description
awaitInput ( string button ) : IEnumerator

This function locks further progress until the player pushes the button (that is passed as parameter)

feedLine ( string line ) : 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

listenForQuickSkip ( string button ) : IEnumerator

This function detects if the player wishes to speed up the text display. IF the player clicks "Examine" as the text is being printed, all text of that "frame" is displayed instantaniously

Method Details

clearLables() public method

public clearLables ( ) : IEnumerator
return IEnumerator

initialize() public method

public initialize ( UILabel, examineLabels, UISprite, nextSprite, float textSpeed, float newLineWait, bool doLinePadding ) : void
examineLabels UILabel,
nextSprite UISprite,
textSpeed float
newLineWait float
doLinePadding bool
return void

showText() public method

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