You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
788 B

using System.Collections.Generic;
using BehaviorDesigner.Runtime.Tasks;
using UnityEngine;
namespace CoreGame.Render
{
public class AddAlwaysRetryActiveAbilities : Action
{
[BehaviorDesigner.Runtime.Tasks.Tooltip("能力id和cd")] [SerializeField]
public List<RetryActivateAbilityData> abilityDataList = new();
public override void OnAwake()
{
base.OnAwake();
for (int i = 0; i < abilityDataList.Count; i++)
{
var abilityData = abilityDataList[i];
abilityData.HasAttach = false;
abilityData.CdAcc = 0;
abilityData.GaSeq = -1;
}
Owner.GetEntity<CombatEntity>().ReplaceRetryActiveAbility(abilityDataList);
}
}
}