C# Class CharacterTextureFlasher, PaperCowboys

This component makes a character object flicker when they get hit.
Inheritance: MonoBehaviour
显示文件 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