Exemplo n.º 1
0
 protected virtual void Init(CardsUIManager UIM, Entities.Entity E, DisplayCard mainDisplayCard, ExpandingCard expandingCard)
 {
     mUIManager = UIM;
     mEntity    = E;
     UnityCard  = mainDisplayCard.UnityCard;
     UnityCard.GetComponentInChildren <Scripts.CardHolder>().OwningCard = this;
     mExpandingCard = expandingCard;
     mDisplayCard   = mainDisplayCard;
 }
Exemplo n.º 2
0
        public static CardObject Create <CardObject>
            (CardsUIManager UIM, Entities.Entity E, DisplayCard mainDisplayCard, ExpandingCard expandingCard)
            where CardObject : UICard, new()
        {
            CardObject newObject = new CardObject();

            newObject.Init(UIM, E, mainDisplayCard, expandingCard);
            return(newObject);
        }
Exemplo n.º 3
0
 protected override void Init(CardsUIManager UIM, Entities.Entity E, DisplayCard mainDisplayCard, ExpandingCard expandingCard)
 {
     base.Init(UIM, E, mainDisplayCard, expandingCard);
 }