악몽 : 보스몹 생성 및 데미지 표시

This commit is contained in:
Ino 2025-01-31 10:17:54 +09:00
parent 1e253839e5
commit 0b10c9dfd6
3 changed files with 20 additions and 10 deletions

View File

@ -62,6 +62,5 @@ messageinfo 엄청 느린 버그
- 결과 화면 (보상 지급)
- 입장권 추가 구매 구현 필요
- 랭킹 UI 통합(랭킹 및 랭킹 보상이 기본)
- 데미지 합계 저장
- 랜덤 보스 몬스터 생성 및 무적
- 인게임 UI
- 난이도별 데미지
- 시작 시 입장권 차감

View File

@ -127,12 +127,10 @@ public class DungeonInfo : MonoBehaviourSingletonTemplate<DungeonInfo>
m_Dungeon = MyValue.MyChoiceMapData.Get_MapData().e_Dungeon;
switch (m_Dungeon)
{
case eDungeon.d1_Mimic: StartCoroutine(Co_Update_Mimic()); break;
case eDungeon.d2_Maze: StartCoroutine(Co_Update_Maze()); break;
case eDungeon.d3_Nightmare:
break;
case eDungeon.d4_Wave:
break;
case eDungeon.d1_Mimic: StartCoroutine(Co_Update_Mimic()); break;
case eDungeon.d2_Maze: StartCoroutine(Co_Update_Maze()); break;
case eDungeon.d3_Nightmare: StartCoroutine(Co_Update_Nightmare()); break;
case eDungeon.d4_Wave: break;
}
}
IEnumerator Co_Update_Mimic()
@ -176,6 +174,19 @@ public class DungeonInfo : MonoBehaviourSingletonTemplate<DungeonInfo>
Start_Dungeon(false);
}
IEnumerator Co_Update_Nightmare()
{
yield return new WaitForSeconds(1f);
StartCoroutine(Co_Update_Time());
var dgData = MyValue.MyChoiceMapData.Get_DungeonMapData_orNull();
for (int i = 0; i < dgData.n_MobCount; i++)
{
Make_Mob(eSubRol.Boss, table_monsterlist.Ins.Get_RandomData(eSubRol.Boss), dgData, 10, 25);
yield return new WaitForSeconds(30f);
}
}
public void Set_Nightmare(Action<double> actui)
{
act_DamageUI = actui;

View File

@ -12,7 +12,7 @@ public class DungeonResult_Nightmare : DungeonResultBase
var sdata = ServerInfo.Ins.m_ServerData;
var BeforeDmg = 0d;
var CurDmg = 0d;
var CurDmg = DungeonInfo.Ins.m_TotalDamage;
texts[0].text = DSUtil.Format("기존 데미지 : {0}\n\n현재 데미지 : {1}", BeforeDmg, CurDmg);
if (CurDmg > BeforeDmg)