public void Initialize(DataContainers.User iUser) { user = iUser; plus.onClick.AddListener(() => { AddAmount(); }); minus.onClick.AddListener(() => { RemoveAmmount(); }); memberName.text = user.name; amount = 0; amountText.text = amount.ToString() + "x"; }
//public OrderUser(string UserId, string iStatus) //{ // status = iStatus; //// RestaurantController.Instance.StartCoroutine(RestController.Instance.GetUser(UserId, setUser, false)); //} public OrderUser(DataContainers.User iUser, string iStatus) { status = iStatus; user = iUser; }