C# Class TextBubble, Malisse

Inheritance: MonoBehaviour
Show file Open project: Collegiennes/Malisse Class Usage Examples

Public Properties

Property Type Description
m_CharacterDisplayDuration float
m_CheckNextLineFits bool
m_IsEnabled bool
m_PlayOnStart bool
m_Skippable bool
m_Text UnityEngine.TextMesh
m_TextAlignment eTextAlignment
m_TextBounds Collider
m_TextKeys List
m_TextPadding Vector2

Protected Properties

Property Type Description
m_CurrentCharacterDisplayDuration float
m_CurrentText string
m_CurrentTextIsNext bool
m_IsDisplayingCharacters bool
m_IsInitialized bool
m_NextTextIndex int

Public Methods

Method Description
LoadNextText ( ) : void
OnTouchUp ( TouchEvent, touchEvent ) : void
Reset ( ) : void
SetEnabled ( bool enabled ) : void
SetSingleText ( string text ) : void

Protected Methods

Method Description
GetText ( string textKey ) : string
Initialize ( ) : void
Start ( ) : void

Private Methods

Method Description
DisplayCharacters ( ) : IEnumerator
IsNextLineFits ( string nextWord ) : bool
IsNextWordFits ( string nextWord ) : bool
PositionInitialText ( ) : void
RemoveCharacter ( string text, char character ) : string

Method Details

GetText() protected method

protected GetText ( string textKey ) : string
textKey string
return string

Initialize() protected method

protected Initialize ( ) : void
return void

LoadNextText() public method

public LoadNextText ( ) : void
return void

OnTouchUp() public method

public OnTouchUp ( TouchEvent, touchEvent ) : void
touchEvent TouchEvent,
return void

Reset() public method

public Reset ( ) : void
return void

SetEnabled() public method

public SetEnabled ( bool enabled ) : void
enabled bool
return void

SetSingleText() public method

public SetSingleText ( string text ) : void
text string
return void

Start() protected method

protected Start ( ) : void
return void

Property Details

m_CharacterDisplayDuration public property

public float m_CharacterDisplayDuration
return float

m_CheckNextLineFits public property

public bool m_CheckNextLineFits
return bool

m_CurrentCharacterDisplayDuration protected property

protected float m_CurrentCharacterDisplayDuration
return float

m_CurrentText protected property

protected string m_CurrentText
return string

m_CurrentTextIsNext protected property

protected bool m_CurrentTextIsNext
return bool

m_IsDisplayingCharacters protected property

protected bool m_IsDisplayingCharacters
return bool

m_IsEnabled public property

public bool m_IsEnabled
return bool

m_IsInitialized protected property

protected bool m_IsInitialized
return bool

m_NextTextIndex protected property

protected int m_NextTextIndex
return int

m_PlayOnStart public property

public bool m_PlayOnStart
return bool

m_Skippable public property

public bool m_Skippable
return bool

m_Text public property

public TextMesh,UnityEngine m_Text
return UnityEngine.TextMesh

m_TextAlignment public property

public eTextAlignment m_TextAlignment
return eTextAlignment

m_TextBounds public property

public Collider m_TextBounds
return Collider

m_TextKeys public property

public List m_TextKeys
return List

m_TextPadding public property

public Vector2 m_TextPadding
return Vector2