27 lines
680 B
C#
27 lines
680 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace BaseGames.Boss
|
|
{
|
|
/// <summary>
|
|
/// 有序攻击序列(一个技能内的多段连段)。
|
|
/// </summary>
|
|
[CreateAssetMenu(menuName = "Boss/SkillSequence")]
|
|
public class SkillSequenceSO : ScriptableObject
|
|
{
|
|
[Serializable]
|
|
public struct SequenceStep
|
|
{
|
|
public AttackPatternSO pattern;
|
|
[Min(0f)] public float delayBeforeStep;
|
|
}
|
|
|
|
public SequenceStep[] steps;
|
|
|
|
[Header("序列完成后的行为")]
|
|
public bool RepeatIfPlayerInRange;
|
|
[Min(0f)] public float RepeatDelay;
|
|
[Range(0, 10)] public int MaxRepeatCount;
|
|
}
|
|
}
|