public void ShowAlert(string text, ModelAlert.AlertEvent fun = null, bool isYesAndNo = false, bool close = false) { ModelAlert model = ModelManager.inst.alertModel; model.text = text; model.onAlert = fun; model.isYesAndNo = isYesAndNo; model.close = close; model.showType = 0; CloseAlert(); alert = new ComAlert(); t.AddChild(alert.group); SetTMask(); EffectManager.inst.ShowView(alert.group); }
public void Clear() { if (scene != null) { s.RemoveChild(scene.group, true); scene = null; } v.RemoveChildren(0, -1, true); s.RemoveChildren(0, -1, true); f.RemoveChildren(0, -1, true); GuideManager.inst.Clear(); views.Clear(); scenes.Clear(); mask = null; sceneMask = null; alert = null; }
//需要消耗多少 public void ShowAlert(string id, int count, ModelAlert.AlertEvent fun = null) { ModelAlert model = ModelManager.inst.alertModel; model.text = ""; model.onAlert = fun; model.isYesAndNo = true; model.id = id; model.count = count; model.showType = 1; CloseAlert(); alert = new ComAlert(); t.AddChild(alert.group); SetTMask(); EffectManager.inst.ShowView(alert.group); }