C# Class ScriptManagerNewTextBox, Adagio

HOW TO USE THIS CODE UPDATE: Format is the same. now supports multiple people speaking in different orders. etc
Inheritance: MonoBehaviour
Datei anzeigen Open project: technicalvgda/Adagio Class Usage Examples

Public Properties

Property Type Description
TextButton GameObject
ZimriColor Color
currentLine int
endAtLine int
speaker1 string
speakerLines List
startInitialText bool
startText bool
textBox GameObject
textFile UnityEngine.TextAsset
textLines string[]
theTextPlayer Text
typeSpeed float

Public Methods

Method Description
OnTriggerEnter2D ( Collider2D col ) : void
OnTriggerExit2D ( Collider2D col ) : void
OnTriggerStay2D ( Collider2D c ) : void
Start ( ) : void
Update ( ) : void
setTextAndPrepareForOutput ( TextAsset t ) : void

Private Methods

Method Description
TextScroll ( string lineOfText, int speakercode ) : IEnumerator

Method Details

OnTriggerEnter2D() public method

public OnTriggerEnter2D ( Collider2D col ) : void
col UnityEngine.Collider2D
return void

OnTriggerExit2D() public method

public OnTriggerExit2D ( Collider2D col ) : void
col UnityEngine.Collider2D
return void

OnTriggerStay2D() public method

public OnTriggerStay2D ( Collider2D c ) : void
c UnityEngine.Collider2D
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

setTextAndPrepareForOutput() public method

public setTextAndPrepareForOutput ( TextAsset t ) : void
t UnityEngine.TextAsset
return void

Property Details

TextButton public_oe property

public GameObject TextButton
return GameObject

ZimriColor public_oe property

public Color ZimriColor
return Color

currentLine public_oe property

public int currentLine
return int

endAtLine public_oe property

public int endAtLine
return int

speaker1 public_oe property

public string speaker1
return string

speakerLines public_oe property

public List speakerLines
return List

startInitialText public_oe property

public bool startInitialText
return bool

startText public_oe property

public bool startText
return bool

textBox public_oe property

public GameObject textBox
return GameObject

textFile public_oe property

public TextAsset,UnityEngine textFile
return UnityEngine.TextAsset

textLines public_oe property

public string[] textLines
return string[]

theTextPlayer public_oe property

public Text theTextPlayer
return Text

typeSpeed public_oe property

public float typeSpeed
return float