private void SetupPlayerCardGameObject(Card c) { GameObject cardGO = CardManager.Instance.GetGameObjectForCardOnBoard(c, TurnManager.Instance.PlayerTurn ? playerBoardParent : opponentBoardParent); cardGO.SetLayerRecursively(10); CoroutineManager.Instance.SetupTimer(0.1f, null, () => { Minion minion = cardGO.GetComponent <Minion>(); if (minion == null) { Debug.LogWarning("This doesn't have a minion?"); } else { minion.OnCardDeath += UpdateCardPositionsWrapper; } } ); CardGameObjectMap.Add(c, cardGO); }