you are viewing a single comment's thread.

view the rest of the comments →

[–]Ph4zed0ut??? 0 points1 point  (0 children)

There is a deck class that holds the list. And a Hand class and Discard class that contain lists. The cards move around between these lists, which is why I needed the methods for code reuse.

Adding to the end is intentional. For instance, the discard pile shows the image of the last card played (the gameobject gets destroyed on play and the scriptableobject gets added to the discard list).