DEG-100 원거리 마법사 보스 개발 #16

Merged
FioreFlower merged 5 commits from DEG-100-원거리-마법사-보스-몬스터-개발-단계-3 into main 2025-05-07 08:07:19 +00:00
4 changed files with 15 additions and 16 deletions
Showing only changes of commit cbc6817075 - Show all commits

View File

@ -9,7 +9,7 @@ public class KnockbackEffect : StatusEffect
public KnockbackEffect(Vector3 sourcePosition, float knockbackForce,float duration)
{
effectName = "Knockback";
effectName = DebuffType.Knockback.ToString();
this.duration = duration;
_sourcePosition = sourcePosition;
_knockbackForce = knockbackForce;

View File

@ -6,7 +6,7 @@ public class SlowDebuff : StatusEffect
public SlowDebuff(float duration, float slowMultiplier)
{
this.effectName = "Slow";
this.effectName = DebuffType.Slow.ToString();
this.duration = duration;
_slowMultiplier = slowMultiplier;
}

View File

@ -1,5 +1,11 @@
using UnityEngine;
public enum DebuffType
{
Slow,
Knockback,
}
public class MagicAoEField : AoeControllerBase
{
protected override void HitCheck()
@ -31,7 +37,7 @@ public class MagicAoEField : AoeControllerBase
playerController.AddStatusEffect(slow);
}
break;
case "knockback":
case "Knockback":
if (playerController != null)
{
var knPos = transform.position;

View File

@ -43,6 +43,7 @@ public class CasterDemonController : EnemyController
private float _tinkingTimer = 3f;
private float _tinkingThresholedTime = 3f;
// 프로퍼티
private bool CanTeleport {
get
{
@ -54,7 +55,6 @@ public class CasterDemonController : EnemyController
return false;
}
}
private bool CanBattleSequence
{
get
@ -96,22 +96,15 @@ public class CasterDemonController : EnemyController
{
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
SetSequence(ShotMagicMissile());
break;
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
SetSequence(SlowFieldSpell());
break;
@ -250,7 +243,7 @@ public class CasterDemonController : EnemyController
// 넉백 발생
var knockback = Instantiate(chariotWarning, transform).GetComponent<MagicAoEField>();
knockback.SetEffect(effectData, null, null, "knockback");
knockback.SetEffect(effectData, null, null, DebuffType.Knockback.ToString());
yield return new WaitForSeconds(1f);
_doneBattleSequence = true;