/// <summary> /// 销毁前处理 /// </summary> protected override void UIDestroyCallback() { if (_mono != null) { UnityEngine.Object.DestroyImmediate(_mono); _mono = null; } }
/// <summary> /// 界面加载完成后调用 /// </summary> protected override void UICreateCallback() { _mono = winObject.AddComponent <BarrageMono>(); }