C# Class FlipperScript, Heracles

Inheritance: MonoBehaviour
Show file Open project: TrinityUniversityGameDesign/Heracles

Public Properties

Property Type Description
animate bool
disappear GameObject
isEnemy bool
lock2 UnityEngine.AudioClip
mode int
numModes int
stalactiteTrigger bool

Public Methods

Method Description
Awake ( ) : void
Damage ( int damageCount ) : void

Inflicts damage and check if the object should be destroyed

MakeLeverSound ( ) : void
OnTriggerEnter2D ( Collider2D otherCollider ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
MakeSound ( AudioClip originalClip ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

Damage() public method

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

MakeLeverSound() public method

public MakeLeverSound ( ) : void
return void

OnTriggerEnter2D() public method

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

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

animate public property

public bool animate
return bool

disappear public property

public GameObject disappear
return GameObject

isEnemy public property

Enemy or player?
public bool isEnemy
return bool

lock2 public property

public AudioClip,UnityEngine lock2
return UnityEngine.AudioClip

mode public property

Total hitpoints
public int mode
return int

numModes public property

public int numModes
return int

stalactiteTrigger public property

public bool stalactiteTrigger
return bool