C# Class FlipperLadder, Heracles

Handle hitpoints and damages
Inheritance: MonoBehaviour
Afficher le fichier Open project: TrinityUniversityGameDesign/Heracles

Méthodes publiques

Свойство Type Description
destroyshot bool
isEnemy bool
lad1 string
lad2 string
lad3 string
lad4 string
lad5 string
numLadders int

Méthodes publiques

Méthode 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 méthode

Enemy or player? Inflicts damage and check if the object should be destroyed
public Damage ( ) : void
Résultat void

Disable() public méthode

public Disable ( GameObject obj ) : void
obj GameObject
Résultat void

Enable() public méthode

public Enable ( GameObject obj ) : void
obj GameObject
Résultat void

OnTriggerEnter2D() public méthode

public OnTriggerEnter2D ( Collider2D otherCollider ) : void
otherCollider UnityEngine.Collider2D
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Toggle() public méthode

public Toggle ( GameObject obj ) : void
obj GameObject
Résultat void

flipDirection() public méthode

public flipDirection ( GameObject obj ) : void
obj GameObject
Résultat void

Property Details

destroyshot public_oe property

public bool destroyshot
Résultat bool

isEnemy public_oe property

public bool isEnemy
Résultat bool

lad1 public_oe property

public string lad1
Résultat string

lad2 public_oe property

public string lad2
Résultat string

lad3 public_oe property

public string lad3
Résultat string

lad4 public_oe property

public string lad4
Résultat string

lad5 public_oe property

public string lad5
Résultat string

numLadders public_oe property

Total hitpoints
public int numLadders
Résultat int