몬스터 스포너 테스트코드 구현

1. 몬스터 상태 Hit, Death 추가
2. 몬스터 스킬 정리
This commit is contained in:
Mingu Kim
2025-02-20 05:21:58 +09:00
parent 5f7428db4c
commit a27bb7d6d1
14 changed files with 926 additions and 709 deletions

View File

@@ -1,82 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace TON
{
public class AttackPattern
{
protected MonsterBase _monsterBase;
public AttackPattern(MonsterBase monsterBase)
{
_monsterBase = monsterBase;
}
public virtual void Attack()
{
}
}
public class Monster1AttackPattern : AttackPattern
{
public Monster1AttackPattern(MonsterBase monsterBase) : base(monsterBase)
{
}
public override void Attack()
{
Skill1();
MeleeAttack();
}
private void Skill1()
{
_monsterBase.MonsterSkillLaunch();
}
private void MeleeAttack()
{
_monsterBase.PlayerAttack();
}
}
public class Monster2AttackPattern : AttackPattern
{
public Monster2AttackPattern(MonsterBase monsterBase) : base(monsterBase)
{
}
public override void Attack()
{
Skill1();
Skill2();
MeleeAttack();
}
private void Skill1()
{
}
private void Skill2()
{
}
private void MeleeAttack()
{
_monsterBase.PlayerAttack();
}
}
}