C# Class Hero, Hero.Coli

Inheritance: MonoBehaviour
Show file Open project: CyberCRI/Hero.Coli Class Usage Examples

Public Properties

Property Type Description
energyAnimation EnergyLogoAnimation
gameObjectName string
lifeAnimation LifeLogoAnimation

Public Methods

Method Description
DisplayEnergyAnimation ( ) : void
Pause ( bool pause ) : void
addLife ( float life ) : void
get ( ) : Hero
getEnergy ( ) : float
getLastCheckpointName ( ) : string
getLife ( ) : float
getLifeManager ( ) : Life
getMedium ( ) : Medium
isAlive ( ) : bool
isPaused ( ) : bool
kill ( ) : void
safeFadeTo ( GameObject toFade, Hashtable fadeOptions ) : void
setEnergy ( float energy ) : void
setLife ( float life ) : void
subEnergy ( float energy ) : void
subLife ( float life ) : void

Private Methods

Method Description
Awake ( ) : void
OnTriggerEnter ( Collider collision ) : void
OnTriggerExit ( Collider col ) : void
RespawnCoroutine ( ) : IEnumerator
Update ( ) : void
deathEffectCoroutine ( CellControl cc ) : IEnumerator
duplicateCell ( ) : void
enableEyes ( bool enable ) : void
initializeIfNecessary ( ) : void
manageCheckpoint ( Collider col ) : void
managePickUp ( Collider col ) : void
manageSector ( Collider col ) : void
popEffectCoroutine ( SavedCell savedCell ) : IEnumerator
respawnCoroutine ( CellControl cc ) : void
safeFadeTo ( Hashtable hash ) : void
setCurrentRespawnPoint ( Collider col ) : void
updateMapElements ( int checkpointIndex ) : void

Method Details

DisplayEnergyAnimation() public method

public DisplayEnergyAnimation ( ) : void
return void

Pause() public method

public Pause ( bool pause ) : void
pause bool
return void

addLife() public method

public addLife ( float life ) : void
life float
return void

get() public static method

public static get ( ) : Hero
return Hero

getEnergy() public method

public getEnergy ( ) : float
return float

getLastCheckpointName() public method

public getLastCheckpointName ( ) : string
return string

getLife() public method

public getLife ( ) : float
return float

getLifeManager() public method

public getLifeManager ( ) : Life
return Life

getMedium() public method

public getMedium ( ) : Medium
return Medium

isAlive() public method

public isAlive ( ) : bool
return bool

isPaused() public method

public isPaused ( ) : bool
return bool

kill() public method

public kill ( ) : void
return void

safeFadeTo() public static method

public static safeFadeTo ( GameObject toFade, Hashtable fadeOptions ) : void
toFade GameObject
fadeOptions Hashtable
return void

setEnergy() public method

public setEnergy ( float energy ) : void
energy float
return void

setLife() public method

public setLife ( float life ) : void
life float
return void

subEnergy() public method

public subEnergy ( float energy ) : void
energy float
return void

subLife() public method

public subLife ( float life ) : void
life float
return void

Property Details

energyAnimation public property

public EnergyLogoAnimation energyAnimation
return EnergyLogoAnimation

gameObjectName public static property

public static string gameObjectName
return string

lifeAnimation public property

public LifeLogoAnimation lifeAnimation
return LifeLogoAnimation