| | |
| | |
|
| | | [SerializeField] Button m_RealmPreview;
|
| | |
|
| | | [SerializeField] Button m_GetRealmPoint;
|
| | |
|
| | | [SerializeField, Header("Boss初始朝向")] Vector3 direction = Vector3.zero;
|
| | | [SerializeField, Header("模型位置")] Vector3[] m_ModelPositions;
|
| | | [SerializeField, Header("当前境界位置")] Vector3[] m_RealmNowPositions;
|
| | |
| | | int cacheRealmPoint = 0;
|
| | |
|
| | | RealmModel realmModel { get { return ModelCenter.Instance.GetModel<RealmModel>(); } }
|
| | | DailyQuestModel dailyQuestModel { get { return ModelCenter.Instance.GetModel<DailyQuestModel>(); } }
|
| | |
|
| | | protected override void BindController()
|
| | | {
|
| | |
| | | {
|
| | | m_FuncButton.onClick.AddListener(OnFunctionClick);
|
| | | m_RealmPreview.onClick.AddListener(OnRealmPreview);
|
| | | m_GetRealmPoint.onClick.AddListener(GetRealmPoint);
|
| | | }
|
| | |
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent += PlayerDataRefreshInfoEvent;
|
| | | WindowCenter.Instance.windowAfterCloseEvent += WindowAfterCloseEvent;
|
| | | dailyQuestModel.realmPointUpdateEvent += RealmPointUpdateEvent;
|
| | | cacheRealmPoint = PlayerDatas.Instance.extersion.realmPoint;
|
| | | Display();
|
| | | }
|
| | |
| | | {
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent += PlayerDataRefreshInfoEvent;
|
| | | WindowCenter.Instance.windowAfterCloseEvent -= WindowAfterCloseEvent;
|
| | | dailyQuestModel.realmPointUpdateEvent -= RealmPointUpdateEvent;
|
| | | UI3DModelExhibition.Instance.StopShowNPC();
|
| | | UI3DModelExhibition.Instance.StopShowPlayer();
|
| | | realmModel.realmDungeonState = false;
|
| | |
| | | DisplayButton();
|
| | | DisplayProgress();
|
| | | DisplayContainer();
|
| | | DisplayGetRealmPoint();
|
| | | }
|
| | | else if (refreshType == PlayerDataRefresh.RealmPoint)
|
| | | {
|
| | |
| | | DisplayProgress();
|
| | | DisplayButton();
|
| | | DisplayContainer();
|
| | | DisplayGetRealmPoint();
|
| | | }
|
| | |
|
| | | private void DisplayRealmNow()
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | void DisplayGetRealmPoint()
|
| | | {
|
| | | m_GetRealmPoint.gameObject.SetActive(!realmModel.IsRealmHighest && dailyQuestModel.gotableRealmPoint > 0);
|
| | | }
|
| | |
|
| | | void DisplayGetRealmPointSfx()
|
| | | {
|
| | | if (m_GetRealmPointSfx != null)
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private void RealmPointUpdateEvent()
|
| | | {
|
| | | DisplayGetRealmPoint();
|
| | | }
|
| | |
|
| | | private void OnRealmPreview()
|
| | | {
|
| | | WindowCenter.Instance.Open<RealmPreviewWin>();
|
| | | }
|
| | |
|
| | | private void GetRealmPoint()
|
| | | {
|
| | | if (dailyQuestModel.gotableRealmPoint > 0)
|
| | | {
|
| | | dailyQuestModel.RequestGetRealmPoint();
|
| | | }
|
| | | else
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("DailyquestNothingToGet");
|
| | | }
|
| | | }
|
| | |
|
| | | void HandleAchievement()
|