C# Class PixelCanvasController, Left4Bread

Inheritance: MonoBehaviour
Datei anzeigen Open project: andresg6/Left4Bread Class Usage Examples

Public Properties

Property Type Description
HPPanel UnityEngine.RectTransform
healthImage Image

Public Methods

Method Description
Start ( ) : void
Update ( ) : void
updatePlayerHealth ( int newCurrentHealth, int newMaxHealth ) : void

Private Methods

Method Description
updatePlayerCurrentHealth ( int newHP ) : void
updatePlayerMaxHealth ( int newMax ) : void

Method Details

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

updatePlayerHealth() public method

public updatePlayerHealth ( int newCurrentHealth, int newMaxHealth ) : void
newCurrentHealth int
newMaxHealth int
return void

Property Details

HPPanel public_oe property

public RectTransform,UnityEngine HPPanel
return UnityEngine.RectTransform

healthImage public_oe property

public Image healthImage
return Image