using UnityEngine;
|
using System.Collections.Generic;
|
using System;
|
|
public class BuffUnmountAction : RecordAction
|
{
|
protected List<HB429_tagSCBuffDel> buffDelList;
|
|
protected Action onComplete;
|
|
public BuffUnmountAction(BattleField _battleField, List<HB429_tagSCBuffDel> buffPackList, Action _onComplete = null)
|
: base(RecordActionType.Death, _battleField, null)
|
{
|
isFinish = false;
|
buffDelList = buffPackList;
|
onComplete = _onComplete;
|
}
|
|
|
public override bool IsFinished()
|
{
|
return isFinish;
|
}
|
|
public override void Run()
|
{
|
base.Run();
|
|
if (!isRunOnce)
|
{
|
|
onComplete?.Invoke();
|
|
isFinish = true;
|
return;
|
}
|
|
}
|
|
public override void ForceFinish()
|
{
|
if (isFinish)
|
{
|
return;
|
}
|
|
// 1帧就结束了 不管
|
base.ForceFinish();
|
}
|
}
|