- Home /
Stack Card
I able to move the cards the to the place i want. But it only able to stack one card on the list.
void MoveCard ( GameObject selected )
{
Selectable s1= slot1.GetComponent<Selectable>();
Selectable s2= selected.GetComponent<Selectable>();
slot1 . transform . position = new Vector3 ( selected . transform . position . x , selected . transform . position . y , selected . transform . position . z - 0.01f );
slot1 . transform . parent = selected . transform;
}
How can i stack the cards by following the size of list?
capture.png
(11.1 kB)
Comment
@ShadyProductions I want to move the player card to three site, which similar to the picture front hand, middle hand, and back hand. As the picture can see each hand has fixed size. Now i am able to move to each of the hand but those hand only stack one element. How can i make it stack more?
capture.png
(119.3 kB)
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Making a bubble level (not a game but work tool) 1 Answer
An OS design issue: File types associated with their appropriate programs 1 Answer
Random Tag Call Script [C#] 3 Answers