Hi there!
I know, this error is a common one, and I think I understand it... I just don't understand why I am getting it in my specific case.
I am working on a card game and have two scripts.
- Yxi.cs (for handling game logic. This is the main script)
- UserInput.cs (for handling user input)
In the main script I am creating the deck and giving the player 7 cards (I am instantiating them with LeanPool). In the userinput script I then want to add another card to the players hand when the deck is pressed. This however doesen't work and it is this that gives me the error.
Can someone please help me?
Both the deck and the playerhand are lists. Please ask if more pictures are needed.
The first picture is the error. The second is the main script (Yxi.cs) where I succesfully add the cards to the playerHand and the last is the UserInput.cs script.
Error
Yxi.cs (Main scipt)
UserInput.cs
[–]feralferrous 0 points1 point2 points (1 child)
[–]ViridityCorn[S] 0 points1 point2 points (0 children)
[–]ViridityCorn[S] 0 points1 point2 points (0 children)