C# Class FlipperLadder, Heracles

Handle hitpoints and damages
Inheritance: MonoBehaviour
ファイルを表示 Open project: TrinityUniversityGameDesign/Heracles

Public Properties

Property Type Description
destroyshot bool
isEnemy bool
lad1 string
lad2 string
lad3 string
lad4 string
lad5 string
numLadders int

Public Methods

Method Description
Damage ( ) : void

Enemy or player?

Inflicts damage and check if the object should be destroyed

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

Method Details

Damage() public method

Enemy or player? 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

Toggle() public method

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

flipDirection() public method

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

Property Details

destroyshot public_oe property

public bool destroyshot
return bool

isEnemy public_oe property

public bool isEnemy
return bool

lad1 public_oe property

public string lad1
return string

lad2 public_oe property

public string lad2
return string

lad3 public_oe property

public string lad3
return string

lad4 public_oe property

public string lad4
return string

lad5 public_oe property

public string lad5
return string

numLadders public_oe property

Total hitpoints
public int numLadders
return int