public override void OnUninitialize() { if (mask != null) { mask.DestroySelf(); mask = null; } Events.ClearAll(); if (null == curScene) { return; } curScene.Unload(); curScene = null; }