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