C# Class Epigene.SpeechBubble

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

Méthodes publiques

Свойство Type Description
bubbleColor Color
closeButton KeyCode
handler GameObject
id string
nameColor Color
nameOutlineColor Color
onArrow string
onClose string
outlineColor Color
sortingOrder int
tail TailType

Méthodes publiques

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

Méthode Description
WaitSomeSeconds ( ) : IEnumerator

Method Details

Awake() public méthode

Create the text and set the tail on bubble
public Awake ( ) : void
Résultat void

ButtonArrow() public méthode

Function to handle the arrow button
public ButtonArrow ( ) : void
Résultat void

ButtonClose() public méthode

Function to handle the close button
public ButtonClose ( ) : void
Résultat void

OnDisable() public méthode

Disable the bubble
public OnDisable ( ) : void
Résultat void

OnEnable() public méthode

Enable the bubble
public OnEnable ( ) : void
Résultat void

SetActive() public méthode

Helper to activate the gameobject
public SetActive ( bool flag ) : void
flag bool
Résultat void

SetColor() public méthode

Set the color of each parts
public SetColor ( ) : void
Résultat void

SetTail() public méthode

Enable the selected tail
public SetTail ( TailType tail ) : void
tail TailType
Résultat void

SetTail() public méthode

Set the tail orientation based on id
public SetTail ( string id ) : void
id string
Résultat void

Start() public méthode

Start the bubble, lets init some stuff
public Start ( ) : void
Résultat void

Update() public méthode

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

Property Details

bubbleColor public_oe property

public Color bubbleColor
Résultat Color

closeButton public_oe property

Key for close bubble
public KeyCode closeButton
Résultat KeyCode

handler public_oe property

Handler object for buttons
public GameObject handler
Résultat GameObject

id public_oe property

public string id
Résultat string

nameColor public_oe property

public Color nameColor
Résultat Color

nameOutlineColor public_oe property

public Color nameOutlineColor
Résultat Color

onArrow public_oe property

Function name to call in handler in case of click on arrow
public string onArrow
Résultat string

onClose public_oe property

Function name to call in handler in case of click on close
public string onClose
Résultat string

outlineColor public_oe property

public Color outlineColor
Résultat Color

sortingOrder public_oe property

sorting order of sprites
public int sortingOrder
Résultat int

tail public_oe property

public TailType tail
Résultat TailType