Files
M-Gameton-06/Gameton-06/Assets/Gameton/Scripts/Monster/AttackPattern.cs

27 lines
727 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace TON
{
public class AttackPattern
{
protected MonsterBase _monsterBase;
protected float _lastSkillTime;
protected float _skill1Cooldown = 5f;
protected float _skill2Cooldown = 8f;
public AttackPattern(MonsterBase monsterBase)
{
_monsterBase = monsterBase;
// 쿨다운 값을 MonsterData에서 가져오기
_skill1Cooldown = _monsterBase.GetSkillCooldown(1);
_skill2Cooldown = _monsterBase.GetSkillCooldown(2);
_lastSkillTime = -_skill1Cooldown;
}
public virtual void Attack()
{
}
}
}