C# Class MeshFlasher, PaperCowboys

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

Méthodes publiques

Свойство Type Description
emissiveColor Color

Méthodes publiques

Méthode 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 méthode

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

Start() public méthode

public Start ( ) : void
Résultat void

Unflash() public méthode

Turns off the flash after the flash duration elapses
public Unflash ( ) : void
Résultat void

Property Details

emissiveColor public_oe property

The color of the flash (usually white)
public Color emissiveColor
Résultat Color