Свойство | Type | Description | |
---|---|---|---|
fadeDelay | float | ||
fadeDuration | float | ||
fadeToColor | Color | ||
initialColor | Color | ||
minDistanceBetweenInstances | float |
Méthode | Description | |
---|---|---|
SpriteTrail ( Sprite sprite, int maxInstances = 15 ) : System | ||
disableSpriteTrail ( bool completeCurrentTrail = true ) : void |
disables the SpriteTrail optionally waiting for the current trail to fade out first
|
|
enableSpriteTrail ( ) : |
enables the SpriteTrail
|
|
render ( Graphics graphics, Camera camera ) : void |
Méthode | Description | |
---|---|---|
IUpdatable ( ) : void | ||
spawnInstance ( ) : void |
stores the last position for distance calculations and spawns a new trail instance if there is one available in the stack
|
public SpriteTrail ( Sprite sprite, int maxInstances = 15 ) : System | ||
sprite | Sprite | |
maxInstances | int | |
Résultat | System |
public disableSpriteTrail ( bool completeCurrentTrail = true ) : void | ||
completeCurrentTrail | bool | If set to |
Résultat | void |
public render ( Graphics graphics, Camera camera ) : void | ||
graphics | Graphics | |
camera | Camera | |
Résultat | void |