| | |
| | | public void PlayerDie(uint playerId)
|
| | | {
|
| | | IsCanReborn = false;
|
| | | Debug.Log("0000000000");
|
| | | if (AllPlayerDieEvent != null) AllPlayerDieEvent(playerId);
|
| | |
|
| | | Debug.Log("111111111");
|
| | |
|
| | | if (playerId != PlayerDatas.Instance.baseData.PlayerID)
|
| | | {
|
| | | return;
|
| | | }
|
| | | Debug.Log("222222222");
|
| | | _tagMapModel = MapConfig.Get(PlayerDatas.Instance.baseData.MapID);
|
| | | Debug.Log("3333333");
|
| | | rebornTiredNum = RebornConditions[0];
|
| | | Debug.Log("4444444");
|
| | | rebornPrice = RebornConditions[2];
|
| | | Debug.Log("55555555");
|
| | | if (_tagMapModel.MapFBType == 0 || PlayerDatas.Instance.baseData.MapID == 31020)
|
| | | {
|
| | | IsCanReborn = true;
|
| | |
| | | {
|
| | | autoRebornTime = RebornConditions[3];
|
| | | }
|
| | | Debug.Log("6666666666");
|
| | |
|
| | | if (!WindowCenter.Instance.IsOpen<RebornWin>())
|
| | | {
|
| | | WindowCenter.Instance.Open<RebornWin>();
|
| | | }
|
| | |
|
| | | Debug.Log("777777777");
|
| | | }
|
| | | else
|
| | | {
|
| | | Debug.Log("888888888888");
|
| | | _dungeonOpenTimeModel = DungeonOpenTimeConfig.Get(dungeonModel.GetDataMapIdByMapId(PlayerDatas.Instance.baseData.MapID));
|
| | | if (_dungeonOpenTimeModel == null)
|
| | | return;
|
| | | Debug.Log("9999999999");
|
| | | if (_dungeonOpenTimeModel.DeathTime == 1)
|
| | | {
|
| | | IsCanReborn = true;
|