C# Class ModLadd, Heracles

Handle hitpoints and damages
Inheritance: MonoBehaviour
显示文件 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_oe property

Enemy or player?
public bool isEnemy
return bool

mode public_oe property

Total hitpoints
public int mode
return int

numModes public_oe property

public int numModes
return int