C# Class DeathController, Viewport

Inheritance: MonoBehaviour
Exibir arquivo 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_oe property

public AudioClip,UnityEngine deathSound
return UnityEngine.AudioClip

deathSoundVolume public_oe property

public float deathSoundVolume
return float

gameOver public_oe static_oe property

public static bool gameOver
return bool

waitForEndMenu public_oe static_oe property

public static float waitForEndMenu
return float