+ BossMapTrigger 스파인 수정 + BossMapTrigger 프리팹 수정 + 타이탄슬라임, 코뿔소 맵 Ground 수정 + DailyBgm 변경 + SandMole 3연속 스킬 방지
25 lines
583 B
C#
25 lines
583 B
C#
using System;
|
|
using BehaviorDesigner.Runtime;
|
|
using BehaviorDesigner.Runtime.Tasks;
|
|
using UnityEngine;
|
|
using Action = BehaviorDesigner.Runtime.Tasks.Action;
|
|
|
|
namespace BlueWater.BehaviorTrees.Actions
|
|
{
|
|
[TaskCategory("Custom")]
|
|
[Serializable]
|
|
public class AddSharedInt : Action
|
|
{
|
|
[SerializeField, RequiredField]
|
|
private SharedInt _sharedInt;
|
|
|
|
[SerializeField]
|
|
private int _value;
|
|
|
|
public override TaskStatus OnUpdate()
|
|
{
|
|
_sharedInt.Value += _value;
|
|
return TaskStatus.Success;
|
|
}
|
|
}
|
|
} |