public override void SetCommonLogic() { if (EntityWorld.Instance.EntSelf == null) { return; } bool flag = false; if (!this.HasEnteredCityBefore) { this.HasEnteredCityBefore = true; EventDispatcher.Broadcast("ReTriggerTaskOfLogin"); if (Application.get_isMobilePlatform() && EntityWorld.Instance.EntSelf.Lv == 1) { flag = true; } } Action action = delegate { FXSpineManager.Instance.ShowBattleStart2(delegate { LoadingUIView.Close(); TownUI.IsOpenAnimationOn = true; this.ShowTownUI(); if (EntityWorld.Instance.EntSelf.IsNavigating) { EventDispatcher.Broadcast(EventNames.BeginNav); } MySceneManager.Instance.PlayBGM(); EventDispatcher.BroadcastAsync(CityManagerEvent.EnteredCity); }); }; if (flag) { ClientApp.Instance.PlayCGMovie(action); } else { action.Invoke(); } }
private void OnEnable() { LoadingUIView.Close(); UIManagerControl.Instance.OpenUI("SelectRoleUI", UINodesManager.NormalUIRoot, true, UIType.NonPush); }