public void ShowDiscard() { if (SelectedUnit == null) { return; } ShowDeckScreen.ShowDiscardPile(); }
// Use this for initialization void Start() { Button.onClick.AddListener(() => { if (PileType == PileType.DISCARD) { ShowDeckScreen.ShowDiscardPile(); } else if (PileType == PileType.DRAW) { ShowDeckScreen.ShowDrawPile(); } else if (PileType == PileType.EXHAUST) { ShowDeckScreen.ShowExhaustPile(); } }); }