| | |
| | |
|
| | | public class HazyDemonKingDungeonWin : Window
|
| | | {
|
| | | [SerializeField] Transform m_ContainerDungeonInfo;
|
| | | [SerializeField] CyclicScroll m_CyclicScroll;
|
| | | [SerializeField] HazyDemonKingPlayerBehaviour m_BelongToPlayer;
|
| | | [SerializeField] RectTransform m_ContainerPlayerList;
|
| | |
| | |
|
| | | uint belongToPlayerId = 0;
|
| | |
|
| | | private int dungeonType
|
| | | {
|
| | | get
|
| | | {
|
| | | var config = HazyRegionConfig.Get(hazyRegionModel.processingIncidentId);
|
| | | if (config != null)
|
| | | {
|
| | | return config.dungeonType;
|
| | | }
|
| | | return 0;
|
| | | }
|
| | | }
|
| | |
|
| | | HazyDemonKingModel model { get { return ModelCenter.Instance.GetModel<HazyDemonKingModel>(); } }
|
| | | HazyRegionModel hazyRegionModel { get { return ModelCenter.Instance.GetModel<HazyRegionModel>(); } }
|
| | | DungeonModel dungeonModel { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } }
|
| | |
|
| | | #region Built-in
|
| | |
| | |
|
| | | void Display()
|
| | | {
|
| | | m_ContainerDungeonInfo.gameObject.SetActive(dungeonType != 0);
|
| | |
|
| | | DisplayBelongTo();
|
| | | DisplayPlayers();
|
| | | DisplayMyTargetName();
|
| | |
| | |
|
| | | void DisplayPlayers()
|
| | | {
|
| | | if (dungeonType == 0)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | playerIds.Clear();
|
| | | clonePlayerIds.Clear();
|
| | |
|
| | |
| | |
|
| | | void DisplayBelongTo()
|
| | | {
|
| | | if (dungeonType == 0)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | belongToPlayerId = 0;
|
| | | foreach (var sid in model.GetPlayerIds())
|
| | | {
|
| | |
| | |
|
| | | void DisplayInvincibleBuff()
|
| | | {
|
| | | var actors = GAMgr.Instance.GetTypeList(E_ActorClassType.NpcFightBoss);
|
| | | bool existInvincibleBuff = false;
|
| | |
|
| | | Status_Base status_Base = null;
|
| | | uint serverInstId = 0;
|
| | |
|
| | | if (actors != null && actors.Count > 0)
|
| | | if (dungeonType != 0)
|
| | | {
|
| | | var serverInstId = (actors[0] as GA_NpcFightBoss).ServerInstID;
|
| | | existInvincibleBuff = StatusMgr.Instance.IsExist(serverInstId, model.invincibleBuffId);
|
| | |
|
| | | if (existInvincibleBuff)
|
| | | var actors = GAMgr.Instance.GetTypeList(E_ActorClassType.NpcFightBoss);
|
| | | if (actors != null && actors.Count > 0)
|
| | | {
|
| | | status_Base = StatusMgr.Instance.Get(serverInstId, model.invincibleBuffId);
|
| | | serverInstId = (actors[0] as GA_NpcFightBoss).ServerInstID;
|
| | | existInvincibleBuff = StatusMgr.Instance.IsExist(serverInstId, model.invincibleBuffId);
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | serverInstId = ClientHazyDemonKingStage.GetClientBossSid();
|
| | | existInvincibleBuff = StatusMgr.Instance.IsExist(serverInstId, model.invincibleBuffId);
|
| | | }
|
| | |
|
| | |
|
| | | if (existInvincibleBuff)
|
| | | {
|
| | | status_Base = StatusMgr.Instance.Get(serverInstId, model.invincibleBuffId);
|
| | | }
|
| | |
|
| | | m_ContainerInvincibleBuff.gameObject.SetActive(existInvincibleBuff);
|
| | |
| | |
|
| | | private void PerSecond()
|
| | | {
|
| | | if (dungeonType == 0)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | if (clonePlayerIds.Count > 0)
|
| | | {
|
| | | clonePlayerIds.Sort(Compare);
|
| | |
| | |
|
| | | void DisplayMyTargetName()
|
| | | {
|
| | | if (dungeonType == 0)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | m_MyAtkTargetName.text = string.Empty;
|
| | |
|
| | | myAtkSid = model.GetPlayerAtkTarget(PlayerDatas.Instance.PlayerId);
|