C# Class TextBubble, Malisse

Inheritance: MonoBehaviour
显示文件 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_oe property

public float m_CharacterDisplayDuration
return float

m_CheckNextLineFits public_oe property

public bool m_CheckNextLineFits
return bool

m_CurrentCharacterDisplayDuration protected_oe property

protected float m_CurrentCharacterDisplayDuration
return float

m_CurrentText protected_oe property

protected string m_CurrentText
return string

m_CurrentTextIsNext protected_oe property

protected bool m_CurrentTextIsNext
return bool

m_IsDisplayingCharacters protected_oe property

protected bool m_IsDisplayingCharacters
return bool

m_IsEnabled public_oe property

public bool m_IsEnabled
return bool

m_IsInitialized protected_oe property

protected bool m_IsInitialized
return bool

m_NextTextIndex protected_oe property

protected int m_NextTextIndex
return int

m_PlayOnStart public_oe property

public bool m_PlayOnStart
return bool

m_Skippable public_oe property

public bool m_Skippable
return bool

m_Text public_oe property

public TextMesh,UnityEngine m_Text
return UnityEngine.TextMesh

m_TextAlignment public_oe property

public eTextAlignment m_TextAlignment
return eTextAlignment

m_TextBounds public_oe property

public Collider m_TextBounds
return Collider

m_TextKeys public_oe property

public List m_TextKeys
return List

m_TextPadding public_oe property

public Vector2 m_TextPadding
return Vector2