Public Member Functions | |
void | MoveCard (Vector3 pos) |
void | OffsetCard (Vector3 pos_, Vector3 scale_) |
bool | IsOffset () |
void | ResetOffset () |
void | RotateCard (Quaternion newRotation_) |
void | RotateCard (Vector3 newEulerRotation_) |
void | ScaleCard (Vector3 newScale_) |
void | ResetStartScale () |
void | Reset () |
Properties | |
Transform | offsetParent [get, set] |
string | cardSpacingKey [get] |
string | moveCurveKey [get] |
float | dealDelay [get, set] |
float | moveClock [get, set] |
float | offsetClock [get, set] |
float | rotationClock [get, set] |
float | scaleClock [get, set] |
float | spdMod [get, set] |
bool | moveDone [get, set] |
bool | rotationDone [get, set] |
bool | scaleDone [get, set] |
DSStack | fromStack [get, set] |
DSStack | targetStack [get, set] |
DSCardPlacementInDeck | targetPlacementInStack [get, set] |
int | targetExactPlacementInStack [get, set] |
bool | disableOffset [get, set] |
Vector3 | startPos [get] |
Vector3 | endPos [get, set] |
Vector3 | offsetStartPos [get, set] |
Vector3 | offsetPos [get, set] |
Vector3 | offsetStartScale [get, set] |
Vector3 | offsetScale [get, set] |
Quaternion | startRotation [get] |
Quaternion | endRotation [get, set] |
bool | lockRotation [get, set] |
Vector3 | startScale [get] |
Vector3 | endScale [get, set] |
DSCardSpacing | cardSpacing [get] |
AnimationCurve | moveCurve [get] |
This script helps offload some code from the DSCardMover.
This script keeps card-specific movement data and helps trigger DSCardMover behaviors, specific to this card.
Should be attached to a DSCard prefab.
|
inline |
A card is offset when its offsetParent object is not at the local position of (0,0,0) and/or not scaled to (1,1,1).
|
inline |
Moves this card to a Vector3 position (world space).
Primarily used in DSRestacker, but can be used in Undefined stacks to move a card to a specific place.
Note: This is not action code, but instead triggers card motion in the DSCardMover.cardsInMotion list.
|
inline |
Offsets the position and scale of the card to the input values until the offset is changed or reset.
Position and scale are in local space.
|
inline |
Resets all values in DSCardMovementHelper.
Used when returning a card to its pool.
|
inline |
Resets offset back to default position and scale.
|
inline |
Used in the card pool to fix the start scale of cards as they are spawned into a stack.
|
inline |
This triggers rotation motion in the DSCardMover, associated with this card, rotating the card to the input Quaternion value.
|
inline |
Overload to make it easier to feed in Euler vectors instead of quaternions.
|
inline |
Similar to MoveCard, OffsetCard, and RotateCard, this scales the card to a desired vector3
Primarily used when transferring cards between stacks with different scales.
|
get |
Returns cardSpacing data from this card's card pool.
|
get |
This key is set on the prefab and determines card spacing data for stacks with this card. This key is fed into card pools that use the card prefab, which then fetch the spacing data.
|
getset |
Once a card is added to cardsWaitingToBeDealt, this will delay its transfer to cardsInMotion.
|
getset |
Disables offset code for this card.
|
getset |
Card movement end of lerp
|
getset |
Card visual offset end scale
|
getset |
Card visual offset end scale
|
getset |
When cards are in motion, we need to know from where the card came from.
|
getset |
Disables DSCardMover rotation for this card.
|
getset |
Evaluate variable in card movement lerp
|
get |
Returns the moveCurve data from this card's card pool.
|
get |
This key is used to get a MoveCurve object from the _cardMoveSettings object.
|
getset |
Used in card movement lerp. Without this, card movement wasn't smooth when other cards joined the stack while this one was in flight.
|
getset |
Evaluate variable in card offset lerp
|
getset |
This object in the prefab will move according to the offset calculations in DSCardMover.
|
getset |
Card visual offset end position
|
getset |
Card visual offset end scale
|
getset |
Card visual offset start position
|
getset |
Card visual offset start scale
|
getset |
Evaluate variable in card rotation lerp
|
getset |
Used in card rotation lerp, similar to moveDone.
|
getset |
Evaluate variable in card scale lerp
|
getset |
Used in card scale lerp, similar to moveDone.
|
getset |
A multiplier for a card's movement speed
|
get |
Card movement start of lerp
|
get |
Card visual offset start scale
|
get |
Card visual offset start scale
|
getset |
Similar to _targetPlacementInStack. This allows for a specific index in the cards list of the stack.
|
getset |
Allows card placement to be determined on an individual card basis.
|
getset |
When cards are in motion, we need to know where they are going.