+ MiniSandMole 프리팹 추가 + BossConfiguration So에 MiniSandMole 추가 + MiniSandMoleData, MiniSingleRollData So 추가 + MiniSandMole BehaviorTree 추가 + SandMoleMapController 클래스 추가 + ITarget, ICurrentDirection 인터페이스 추가 + Bt Actions - CanSkill, ActivateSkill 로직 변경 + BossHealthPoint 로직 변경 + 미니 모래 두더지에 소환할 때, 죽을 때, 디졸브 효과 추가 Closes #20
27 lines
731 B
C#
27 lines
731 B
C#
using System;
|
|
using BehaviorDesigner.Runtime.Tasks;
|
|
using BlueWater.Enemies.Bosses;
|
|
using UnityEngine;
|
|
|
|
namespace BlueWater.BehaviorTrees.Enemies.Bosses.Conditionals
|
|
{
|
|
[TaskCategory("Custom/Enemy/Boss")]
|
|
[Serializable]
|
|
public class CanSkill : Conditional
|
|
{
|
|
[SerializeField]
|
|
private BossSkillName _bossSkillName;
|
|
|
|
private BossSkillController _bossSkillController;
|
|
|
|
public override void OnAwake()
|
|
{
|
|
_bossSkillController = GetComponent<BossSkillController>();
|
|
}
|
|
|
|
public override TaskStatus OnUpdate()
|
|
{
|
|
return _bossSkillController.CanSkill(_bossSkillName.ToString()) ? TaskStatus.Success : TaskStatus.Failure;
|
|
}
|
|
}
|
|
} |