This DeckStacker action takes a card or list of cards and triggers a tint on it / them via the DSCardTintHelper.
Setting spd paramater to <= 0 will make the tint transition instant.
◆ DSTintCardAction() [1/4]
DeckStacker.DSTintCardAction.DSTintCardAction |
( |
DSCard | tintingCard_, |
|
|
Color | newTint_, |
|
|
float | spd_ = 1f ) |
|
inline |
Constructor for a single card being queued up.
- tintingCard = the DSCard to be tinted
- newTint = the desired Color to tint the card
- spd = a multiplier that speeds up or slows down the tint, applied to Time.deltaTime. A value <= 0 will make the tint transition instant.
◆ DSTintCardAction() [2/4]
DeckStacker.DSTintCardAction.DSTintCardAction |
( |
DSCard | tintingCard_, |
|
|
string | newTintKey_, |
|
|
float | spd_ = 1f ) |
|
inline |
Constructor for a single card being queued up.
- tintingCard = the DSCard to be tinted
- newTintKey = the name of a color tint in the DSCardTintSettingsSO scriptable object.
- spd = a multiplier that speeds up or slows down the tint, applied to Time.deltaTime. A value <= 0 will make the tint transition instant.
◆ DSTintCardAction() [3/4]
DeckStacker.DSTintCardAction.DSTintCardAction |
( |
List< DSCard > | tintingCards_, |
|
|
Color | newTint_, |
|
|
float | spd_ = 1f ) |
|
inline |
Constructor for a DSCard list being queued up.
- tintingCards = the DSCard list to be tinted
- newTint = the desired Color to tint the cards
- spd = a multiplier that speeds up or slows down the tint, applied to Time.deltaTime. A value <= 0 will make the tint transition instant.
◆ DSTintCardAction() [4/4]
DeckStacker.DSTintCardAction.DSTintCardAction |
( |
List< DSCard > | tintingCards_, |
|
|
string | newTintKey_, |
|
|
float | spd_ = 1f ) |
|
inline |
Constructor for a DSCard list being queued up.
- tintingCards = the DSCard list to be tinted
- newTintKey = the name of a color tint in the DSCardTintSettingsSO scriptable object.
- spd = a multiplier that speeds up or slows down the tint, applied to Time.deltaTime. A value <= 0 will make the tint transition instant.
◆ Execute()
override void DeckStacker.DSTintCardAction.Execute |
( |
| ) |
|
|
inline |
This code will execute when this DSAction is at the 0 index of the DSActionQueue.actionQueue list, and an RunUpdate call has been made.
The documentation for this class was generated from the following file: