C# Class BossHealthScript, Heracles

Inheritance: MonoBehaviour
Show file Open project: TrinityUniversityGameDesign/Heracles Class Usage Examples

Public Properties

Property Type Description
currenthealth int
heart UnityEngine.Texture2D
maxHealth int
respawnPos Vector2

Public Methods

Method Description
damagePlayer ( int damage ) : void
healPlayer ( int healing ) : void

Private Methods

Method Description
OnGUI ( ) : void
OnTriggerEnter2D ( Collider2D otherCollider ) : void
Update ( ) : void

Method Details

damagePlayer() public method

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

healPlayer() public method

public healPlayer ( int healing ) : void
healing int
return void

Property Details

currenthealth public property

public int currenthealth
return int

heart public property

public Texture2D,UnityEngine heart
return UnityEngine.Texture2D

maxHealth public property

public int maxHealth
return int

respawnPos public static property

public static Vector2 respawnPos
return Vector2