예제 #1
0
    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);
    }