C# Class playerHealth, Heracles

Inheritance: MonoBehaviour
Afficher le fichier Open project: TrinityUniversityGameDesign/Heracles Class Usage Examples

Méthodes publiques

Свойство Type Description
currenthealth int
destroyOnDeath bool
healthEnd UnityEngine.Texture2D
healthMiddle UnityEngine.Texture2D
healthStart UnityEngine.Texture2D
maxHealth int
respawnPos Vector2

Méthodes publiques

Méthode Description
damagePlayer ( int damage ) : void
healPlayer ( int healing ) : void

Private Methods

Méthode Description
OnGUI ( ) : void
OnTriggerEnter2D ( Collider2D otherCollider ) : void
Update ( ) : void

Method Details

damagePlayer() public méthode

public damagePlayer ( int damage ) : void
damage int
Résultat void

healPlayer() public méthode

public healPlayer ( int healing ) : void
healing int
Résultat void

Property Details

currenthealth public_oe property

public int currenthealth
Résultat int

destroyOnDeath public_oe property

public bool destroyOnDeath
Résultat bool

healthEnd public_oe property

public Texture2D,UnityEngine healthEnd
Résultat UnityEngine.Texture2D

healthMiddle public_oe property

public Texture2D,UnityEngine healthMiddle
Résultat UnityEngine.Texture2D

healthStart public_oe property

public Texture2D,UnityEngine healthStart
Résultat UnityEngine.Texture2D

maxHealth public_oe property

public int maxHealth
Résultat int

respawnPos public_oe static_oe property

public static Vector2 respawnPos
Résultat Vector2