C# Class MeshFlasher, PaperCowboys

This component makes a non-character object flicker when they get hit.
Inheritance: MonoBehaviour
Datei anzeigen Open project: Gamieon/PaperCowboys Class Usage Examples

Public Properties

Property Type Description
emissiveColor Color

Public Methods

Method Description
Flash ( float duration ) : void

Flashs the object for the specified duration.

Start ( ) : void
Unflash ( ) : void

Turns off the flash after the flash duration elapses

Method Details

Flash() public method

Flashs the object for the specified duration.
public Flash ( float duration ) : void
duration float /// Duration. ///
return void

Start() public method

public Start ( ) : void
return void

Unflash() public method

Turns off the flash after the flash duration elapses
public Unflash ( ) : void
return void

Property Details

emissiveColor public_oe property

The color of the flash (usually white)
public Color emissiveColor
return Color