C# Class DeathController, Viewport

Inheritance: MonoBehaviour
Show file Open project: tws2xa/Viewport Class Usage Examples

Public Properties

Property Type Description
deathSound UnityEngine.AudioClip
deathSoundVolume float
gameOver bool
waitForEndMenu float

Public Methods

Method Description
KillPlayer ( GameObject player, DeathCause cause ) : void
PlayerDeath ( int playerNum, DeathCause cause ) : void
RandomPlayerCameraReassign ( GameObject fromObject ) : void

Private Methods

Method Description
Start ( ) : void
Update ( ) : void

Method Details

KillPlayer() public static method

public static KillPlayer ( GameObject player, DeathCause cause ) : void
player GameObject
cause DeathCause
return void

PlayerDeath() public static method

public static PlayerDeath ( int playerNum, DeathCause cause ) : void
playerNum int
cause DeathCause
return void

RandomPlayerCameraReassign() public static method

public static RandomPlayerCameraReassign ( GameObject fromObject ) : void
fromObject GameObject
return void

Property Details

deathSound public property

public AudioClip,UnityEngine deathSound
return UnityEngine.AudioClip

deathSoundVolume public property

public float deathSoundVolume
return float

gameOver public static property

public static bool gameOver
return bool

waitForEndMenu public static property

public static float waitForEndMenu
return float