static public Transform GetContainer(Card card, bool isAlly, int ContainerIndex) { Transform container; if (isAlly) { container = card.Allegiance.GetChild(ContainerIndex); } else if (card.Allegiance == Alliance) { container = Horde.GetChild(ContainerIndex); } else { container = Alliance.GetChild(ContainerIndex); } return(container); }