private void OnOpenUIFormSuccess(object sender, GameEventArgs e) { OpenUIFormSuccessEventArgs ne = (OpenUIFormSuccessEventArgs)e; if (ne.UserData != this) { return; } m_LoadoutForm = (LoadoutForm)ne.UIForm.Logic; }
protected override void OnLeave(IFsm <IProcedureManager> procedureOwner, bool isShutdown) { base.OnLeave(procedureOwner, isShutdown); if (m_LoadoutForm != null) { m_LoadoutForm.Close(); m_LoadoutForm = null; } GameEntry.Event.Unsubscribe(OpenUIFormSuccessEventArgs.EventId, OnOpenUIFormSuccess); }