public static UICard InstantiateCard(Card card, Transform parent) { UICard UICard = Instantiate(Prefabs.Instance.card, parent).GetComponent <UICard>(); UICard.InitCard(card); return(UICard); }
public static UICard CreateCloseup(Card card, Vector3 position, float scaleMultiplier) { UICard closeup = Instantiate(Prefabs.Instance.card, UIMaster.Instance.transform).GetComponent <UICard>(); closeup.InitCard(card); closeup.rect.localScale *= scaleMultiplier; closeup.rect.position = position; closeup.canvas.sortingOrder = 4; closeup.button.interactable = false; return(closeup); }