public YesNoInfo() { title = ""; content = ""; noLabel = ""; yesLabel = ""; onYesClick = null; onNoClick = null; }
public void ShowYesOrNoUI(string title, string content, OnYesClick onYes, object param = null, OnNoClick onNo = null, string yesLabel = "", string noLabel = "") { YesNoInfo yni = new YesNoInfo(); yni.title = title; yni.content = content; yni.onYesClick = onYes; yni.param = param; yni.onNoClick = onNo; yni.yesLabel = yesLabel; yni.noLabel = noLabel; //mDatas.Add(yni); mDatas.Enqueue(yni); Show(); }