public void OpenRankUpUI(int state)
    {
        this.CurState = state;
        RankUpUI rankUpUI = UIManagerControl.Instance.OpenUI("RankUpUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush) as RankUpUI;

        if (rankUpUI)
        {
            rankUpUI.SetData(this.Rank, this.GetRankUpUIState(this.CurState));
        }
    }
    protected void TryUpdateRankUpUI()
    {
        RankUpUI rankUpUI = UIManagerControl.Instance.GetUIIfExist("RankUpUI") as RankUpUI;

        if (!rankUpUI)
        {
            return;
        }
        if (this.IsWaitingRankUpResult)
        {
            rankUpUI.RankUp();
        }
        else
        {
            rankUpUI.SetData(this.Rank, this.GetRankUpUIState(this.CurState));
        }
    }