C# Class playerHealth, Heracles

Inheritance: MonoBehaviour
ファイルを表示 Open project: TrinityUniversityGameDesign/Heracles Class Usage Examples

Public Properties

Property Type Description
currenthealth int
destroyOnDeath bool
healthEnd UnityEngine.Texture2D
healthMiddle UnityEngine.Texture2D
healthStart 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_oe property

public int currenthealth
return int

destroyOnDeath public_oe property

public bool destroyOnDeath
return bool

healthEnd public_oe property

public Texture2D,UnityEngine healthEnd
return UnityEngine.Texture2D

healthMiddle public_oe property

public Texture2D,UnityEngine healthMiddle
return UnityEngine.Texture2D

healthStart public_oe property

public Texture2D,UnityEngine healthStart
return UnityEngine.Texture2D

maxHealth public_oe property

public int maxHealth
return int

respawnPos public_oe static_oe property

public static Vector2 respawnPos
return Vector2