public void SetOrder(OrderScriptableObject order) { this.order = new Order(order); orderImage.gameObject.SetActive(true); orderImage.sprite = order.items[0].image; }
public Order(OrderScriptableObject order) { this.items = order.items; }