C# Class Assets.Scripts.Player.PlayerHealth

Inheritance: UnityEngine.MonoBehaviour, IDamageBehavior
Mostra file Open project: EricFreeman/DungeonGame Class Usage Examples

Public Properties

Property Type Description
Hand UnityEngine.GameObject
HealthImage UnityEngine.UI.Image
HealthTextBox UnityEngine.UI.Text

Public Methods

Method Description
OnDeath ( HitContext hitContext ) : void
OnHit ( HitContext hitContext ) : void
Start ( ) : void
TakeDamage ( int damage ) : void
Update ( ) : void

Method Details

OnDeath() public method

public OnDeath ( HitContext hitContext ) : void
hitContext Assets.Scripts.People.HitContext
return void

OnHit() public method

public OnHit ( HitContext hitContext ) : void
hitContext Assets.Scripts.People.HitContext
return void

Start() public method

public Start ( ) : void
return void

TakeDamage() public method

public TakeDamage ( int damage ) : void
damage int
return void

Update() public method

public Update ( ) : void
return void

Property Details

Hand public_oe property

public GameObject,UnityEngine Hand
return UnityEngine.GameObject

HealthImage public_oe property

public Image,UnityEngine.UI HealthImage
return UnityEngine.UI.Image

HealthTextBox public_oe property

public Text,UnityEngine.UI HealthTextBox
return UnityEngine.UI.Text