private void Start() { FloatNoticeManager expr_05 = FloatNoticeManager.Instance; expr_05.PlayNotice = (Action <string>)Delegate.Combine(expr_05.PlayNotice, new Action <string>(this.PlayNotice)); if (FloatNoticeManager.Instance.curPlayQueue.Count > 0) { this.PlayNotice(FloatNoticeManager.Instance.curPlayQueue.Dequeue()); } }
private void Awake() { object lockBoo = FloatNoticeManager.m_lockBoo; Monitor.Enter(lockBoo); try { if (FloatNoticeManager.Instance == null) { FloatNoticeManager.Instance = this; UnityEngine.Object.DontDestroyOnLoad(this); } else { UnityEngine.Object.Destroy(base.gameObject); } } finally { Monitor.Exit(lockBoo); } }
private void OnDestroy() { FloatNoticeManager expr_05 = FloatNoticeManager.Instance; expr_05.PlayNotice = (Action <string>)Delegate.Remove(expr_05.PlayNotice, new Action <string>(this.PlayNotice)); }