C# Class ModLadd, Heracles

Handle hitpoints and damages
Inheritance: MonoBehaviour
Show file Open project: TrinityUniversityGameDesign/Heracles

Public Properties

Property Type Description
isEnemy bool
mode int
numModes int

Public Methods

Method Description
Damage ( ) : void

Inflicts damage and check if the object should be destroyed

Disable ( GameObject obj ) : void
Enable ( GameObject obj ) : void
OnTriggerEnter2D ( Collider2D otherCollider ) : void
Start ( ) : void

Method Details

Damage() public method

Inflicts damage and check if the object should be destroyed
public Damage ( ) : void
return void

Disable() public method

public Disable ( GameObject obj ) : void
obj GameObject
return void

Enable() public method

public Enable ( GameObject obj ) : void
obj GameObject
return void

OnTriggerEnter2D() public method

public OnTriggerEnter2D ( Collider2D otherCollider ) : void
otherCollider UnityEngine.Collider2D
return void

Start() public method

public Start ( ) : void
return void

Property Details

isEnemy public property

Enemy or player?
public bool isEnemy
return bool

mode public property

Total hitpoints
public int mode
return int

numModes public property

public int numModes
return int