| | |
| | |
|
| | | model.allianceBossStateRefresh += AllianceBossStateRefresh;
|
| | | model.allianceBossLineRefresh += AllianceBossLineRefresh;
|
| | |
|
| | | WindowCenter.Instance.windowBeforeCloseEvent += WindowBeforeCloseEvent;
|
| | | }
|
| | |
|
| | | void DisplayBase()
|
| | |
| | | var npcId = model.GetBossNpcId(index);
|
| | | var npcConfig = NPCConfig.Get(npcId);
|
| | | m_BossName.text = npcConfig.charName;
|
| | | DisplayBossModel();
|
| | | }
|
| | |
|
| | | void DisplayItems()
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | void DisplayState()
|
| | | void DisplayBossModel()
|
| | | {
|
| | | m_RawBoss.gameObject.SetActive(true);
|
| | |
|
| | |
| | | if (index == 0)
|
| | | {
|
| | | UI3DModelExhibition.Instance.ShowNPC(npcId, npcConifg.UIModeLOffset,
|
| | | npcConifg.UIModelRotation, m_RawBoss, state == 0);
|
| | | npcConifg.UIModelRotation, m_RawBoss);
|
| | | }
|
| | | else
|
| | | {
|
| | | UI3DModelExhibition.InstanceClone1.ShowNPC(npcId, npcConifg.UIModeLOffset,
|
| | | npcConifg.UIModelRotation, m_RawBoss, state == 0);
|
| | | npcConifg.UIModelRotation, m_RawBoss);
|
| | | }
|
| | | }
|
| | |
|
| | | void DisplayState()
|
| | | {
|
| | | m_Goto.SetInteractable(m_GotoLabel, state != 0);
|
| | |
|
| | | switch (state)
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private void WindowBeforeCloseEvent(Window window)
|
| | | {
|
| | | if (window is PetMatInfoWin)
|
| | | {
|
| | | DisplayBossModel();
|
| | | }
|
| | | }
|
| | |
|
| | | public void Dispose()
|
| | | {
|
| | | model.allianceBossStateRefresh -= AllianceBossStateRefresh;
|
| | | model.allianceBossLineRefresh -= AllianceBossLineRefresh;
|
| | | WindowCenter.Instance.windowBeforeCloseEvent -= WindowBeforeCloseEvent;
|
| | |
|
| | | UI3DModelExhibition.Instance.StopShow();
|
| | | UI3DModelExhibition.InstanceClone1.StopShow();
|