C# Class Epigene.SpeechBubble

SpeechBubble class to create and manage the bubble with text.
Inheritance: UnityEngine.MonoBehaviour
显示文件 Open project: fi-content2-games-platform/FIcontent.Gaming.Enabler.phenomobilecharactermanager Class Usage Examples

Public Properties

Property Type Description
bubbleColor Color
closeButton KeyCode
handler GameObject
id string
nameColor Color
nameOutlineColor Color
onArrow string
onClose string
outlineColor Color
sortingOrder int
tail TailType

Public Methods

Method Description
Awake ( ) : void

Create the text and set the tail on bubble

ButtonArrow ( ) : void

Function to handle the arrow button

ButtonClose ( ) : void

Function to handle the close button

OnDisable ( ) : void

Disable the bubble

OnEnable ( ) : void

Enable the bubble

SetActive ( bool flag ) : void

Helper to activate the gameobject

SetColor ( ) : void

Set the color of each parts

SetTail ( TailType tail ) : void

Enable the selected tail

SetTail ( string id ) : void

Set the tail orientation based on id

Start ( ) : void

Start the bubble, lets init some stuff

Update ( ) : void

Update the bubble with some anims TODO use trigger in start instead of this..

Private Methods

Method Description
WaitSomeSeconds ( ) : IEnumerator

Method Details

Awake() public method

Create the text and set the tail on bubble
public Awake ( ) : void
return void

ButtonArrow() public method

Function to handle the arrow button
public ButtonArrow ( ) : void
return void

ButtonClose() public method

Function to handle the close button
public ButtonClose ( ) : void
return void

OnDisable() public method

Disable the bubble
public OnDisable ( ) : void
return void

OnEnable() public method

Enable the bubble
public OnEnable ( ) : void
return void

SetActive() public method

Helper to activate the gameobject
public SetActive ( bool flag ) : void
flag bool
return void

SetColor() public method

Set the color of each parts
public SetColor ( ) : void
return void

SetTail() public method

Enable the selected tail
public SetTail ( TailType tail ) : void
tail TailType
return void

SetTail() public method

Set the tail orientation based on id
public SetTail ( string id ) : void
id string
return void

Start() public method

Start the bubble, lets init some stuff
public Start ( ) : void
return void

Update() public method

Update the bubble with some anims TODO use trigger in start instead of this..
public Update ( ) : void
return void

Property Details

bubbleColor public_oe property

public Color bubbleColor
return Color

closeButton public_oe property

Key for close bubble
public KeyCode closeButton
return KeyCode

handler public_oe property

Handler object for buttons
public GameObject handler
return GameObject

id public_oe property

public string id
return string

nameColor public_oe property

public Color nameColor
return Color

nameOutlineColor public_oe property

public Color nameOutlineColor
return Color

onArrow public_oe property

Function name to call in handler in case of click on arrow
public string onArrow
return string

onClose public_oe property

Function name to call in handler in case of click on close
public string onClose
return string

outlineColor public_oe property

public Color outlineColor
return Color

sortingOrder public_oe property

sorting order of sprites
public int sortingOrder
return int

tail public_oe property

public TailType tail
return TailType