public void OpenRankUpChangeUI() { RankUpChangeUI rankUpChangeUI = UIManagerControl.Instance.OpenUI("RankUpChangeUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush) as RankUpChangeUI; if (rankUpChangeUI) { rankUpChangeUI.SetData(this.CurType, this.CurCareer, this.CurStage, this.curStageFinishedTask); } }
protected void TryUpdateStageChange() { RankUpChangeUI rankUpChangeUI = UIManagerControl.Instance.GetUIIfExist("RankUpChangeUI") as RankUpChangeUI; if (rankUpChangeUI) { rankUpChangeUI.SetData(this.CurType, this.CurCareer, this.CurStage, this.curStageFinishedTask); } }
protected void TryUpdateCareerFinish(int preID, int curID) { if (UIManagerControl.Instance.IsOpen("RankUpChangeUI")) { RankUpChangeUI rankUpChangeUI = UIManagerControl.Instance.GetUIIfExist("RankUpChangeUI") as RankUpChangeUI; if (rankUpChangeUI) { rankUpChangeUI.SetData(this.CurType, this.CurCareer, this.CurStage, this.curStageFinishedTask); } } else { this.IsWaitForShowCareerFinish = true; this.WaitForShowPreCareer = preID; this.WaitForShowCurCareer = curID; if (UIManagerControl.Instance.IsOpen("TownUI")) { this.TryShowCareerFinishUI(); } } }