public void Show(Texture texture, string sName, int fund) { ClawResultQueue queue = new ClawResultQueue(); queue.icon = texture; queue.name = "$" + fund.ToString(); queues.Add(queue); if (!isVisible()) { ProcessQueue(); } }
void ProcessQueue() { Debug.LogError("processqueue amount=" + queues.Count); if (queues != null && queues.Count > 0) { ClawResultQueue queue = (ClawResultQueue)queues[0]; queues.RemoveAt(0); icon.mainTexture = queue.icon; labelName.text = queue.name; //Debug.LogError("result="+queue.name); GUI_Dialog.InsertStack(this.gameObject); //Show (); } }