public void ThrowCard(GameObject goCard, int i) { if (goCard != null) { Debug.Log("You have thrown " + goCard.name); GameObject card = Instantiate(goCard, cardEndWaypoint); gamemanager.cardHistory.Add(goCard); RemoveCard(i); isPlayersTurn = false; gamemanager.PassTurn(); /* * canBeSelected = true; * if (playerSelection.hasBeenSelected) * { * canBeSelected = false; * gamemanager.PassTurn(); * } */ } }