常用方法
常用方法
常用方法
常用方法
public void addCard(CardHandler handler) { var cardObject = Instantiate(manager.produceCard(handler.getCard()), new Vector2(), Quaternion.identity); cardObject.transform.SetParent(cartGrid.transform, false); cardObject.transform.localScale = Vector3.one; cardObject.GetComponent <CardHandler>().setCardHandler(handler); cartObjects.Add(cardObject); priceTotal += getPrice(handler.getCardType()); priceText.text = $"${priceTotal}"; }