C# Class OverHeadBar, CSharpGameFramework

Inheritance: MonoBehaviour
Show file Open project: dreamanlan/CSharpGameFramework Class Usage Examples

Public Properties

Property Type Description
SLOW_HEALTH_CD float
SLOW_HEALTH_STEP float
health Image
health2 Image
healthSlow Image
mp Image
panelBloodNums GameObject

Public Methods

Method Description
GetHealth ( ) : float
SetHealth ( float hpRate ) : void
SetHealthColor ( bool isGreen ) : void
SetMp ( float fmp ) : void
ShowFloatNum ( int num, Color color, float duration ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
Reset ( ) : void

Method Details

GetHealth() public method

public GetHealth ( ) : float
return float

SetHealth() public method

public SetHealth ( float hpRate ) : void
hpRate float
return void

SetHealthColor() public method

public SetHealthColor ( bool isGreen ) : void
isGreen bool
return void

SetMp() public method

public SetMp ( float fmp ) : void
fmp float
return void

ShowFloatNum() public method

public ShowFloatNum ( int num, Color color, float duration ) : void
num int
color Color
duration float
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

SLOW_HEALTH_CD public property

public float SLOW_HEALTH_CD
return float

SLOW_HEALTH_STEP public property

public float SLOW_HEALTH_STEP
return float

health public property

public Image health
return Image

health2 public property

public Image health2
return Image

healthSlow public property

public Image healthSlow
return Image

mp public property

public Image mp
return Image

panelBloodNums public property

public GameObject panelBloodNums
return GameObject