public override void onShowed() { if (showed) { return; } showed = true; curState = 0; // lgSelfPlayer.instance.stop(); instance = this; base.onShowed(); play(); }
public override void onClosed() { if (!showed) { return; } showed = false; instance = null; bga.gameObject.SetActive(true); curState = 0; _handle = null; UiEventCenter.getInstance().onMapChanged(); base.onClosed(); }