C# Class Fungus.Character

Inheritance: UnityEngine.MonoBehaviour, ILocalizable
Mostra file Open project: snozbot/fungus Class Usage Examples

Protected Properties

Property Type Description
activeCharacters List
portaitState Fungus.PortraitState

Public Methods

Method Description
GetDescription ( ) : string
GetObjectName ( ) : string

Returns the name of the game object.

GetPortrait ( string portraitString ) : Sprite

Looks for a portrait by name on a character If none is found, give a warning and return a blank sprite

GetStandardText ( ) : string
GetStringId ( ) : string
NameStartsWith ( string matchString ) : bool

Returns true if the character name starts with the specified string. Case insensitive.

SetStandardText ( string standardText ) : void

Protected Methods

Method Description
OnDisable ( ) : void
OnEnable ( ) : void

Method Details

GetDescription() public method

public GetDescription ( ) : string
return string

GetObjectName() public method

Returns the name of the game object.
public GetObjectName ( ) : string
return string

GetPortrait() public method

Looks for a portrait by name on a character If none is found, give a warning and return a blank sprite
public GetPortrait ( string portraitString ) : Sprite
portraitString string
return UnityEngine.Sprite

GetStandardText() public method

public GetStandardText ( ) : string
return string

GetStringId() public method

public GetStringId ( ) : string
return string

NameStartsWith() public method

Returns true if the character name starts with the specified string. Case insensitive.
public NameStartsWith ( string matchString ) : bool
matchString string
return bool

OnDisable() protected method

protected OnDisable ( ) : void
return void

OnEnable() protected method

protected OnEnable ( ) : void
return void

SetStandardText() public method

public SetStandardText ( string standardText ) : void
standardText string
return void

Property Details

activeCharacters protected_oe static_oe property

protected static List activeCharacters
return List

portaitState protected_oe property

protected PortraitState,Fungus portaitState
return Fungus.PortraitState