C# Class DamageTaking, MobileGameDevWithUnity1stEd

Inheritance: MonoBehaviour
Mostra file Open project: thesecretlab/MobileGameDevWithUnity1stEd Class Usage Examples

Public Properties

Property Type Description
destructionPrefab GameObject
gameOverOnDestroyed bool
hitPoints int

Public Methods

Method Description
TakeDamage ( int amount ) : void

Method Details

TakeDamage() public method

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

Property Details

destructionPrefab public_oe property

public GameObject destructionPrefab
return GameObject

gameOverOnDestroyed public_oe property

public bool gameOverOnDestroyed
return bool

hitPoints public_oe property

public int hitPoints
return int