protected override void UIDestroyCallback() { if (monoComponent != null) { UnityEngine.Object.DestroyImmediate(monoComponent); monoComponent = null; } }
protected override void UICreateCallback() { monoComponent = winObject.AddComponent <MessageWithIconMono>(); }