void OnLegionAccount(AllianceAccount data) { if (data.State == eAllianceState.Joined) { controller.Close(); if (LegionEvent.LegionShowUI != null) { LegionEvent.LegionShowUI(); } } }