public void UpdateData() { for (int i = 0; i < players_number; ++i) { UIAuctionGod w = uiAuctionGods[i]; w.SetUser(i); w.SetGod(""); w.SetBet(i); } }
private UIAuctionGod AddGodInfoWidget(int w_number) { GameObject w_go = (GameObject)NGUITools.AddChild(Table.gameObject, UIAuctionGodPrefab); w_go.name = "" + w_number + ". " + w_go.name; UIAuctionGod w = w_go.GetComponent <UIAuctionGod>(); w.AuctionInfoPanel = this; w.MyNumber = w_number; uiAuctionGods.Add(w); return(w); }