public GetTimerNoteDelegate m_NoteCall; //获取描述回调 public void Init(int sec, string title, GetTimerNoteDelegate notecall) { m_Duration = sec; m_Count = m_Duration; m_LastSecond = (int)m_Count; m_NoteCall = notecall; //Title.text = title; Note.text = m_NoteCall == null ? string.Empty : m_NoteCall(m_LastSecond); }
public static void Show(int sec, string title, GetTimerNoteDelegate notecall) { TipAutoClose tipDialog = MainPanelMgr.Instance.ShowDialog("TipAutoClose") as TipAutoClose; if (null == tipDialog) { return; } tipDialog.Init(sec, title, notecall); }