C# Class ExamineLogic, Hellbound

Examine behaviour. All logic for the Examine functions Created by Simon Jonasson
Inheritance: MonoBehaviour
Afficher le fichier Open project: Backman/Hellbound

Méthodes publiques

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

Private Methods

Méthode 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 méthode

public clearLables ( ) : IEnumerator
Résultat IEnumerator

initialize() public méthode

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

showText() public méthode

public showText ( object args ) : IEnumerator
args object
Résultat IEnumerator