hch
2025-10-30 dc7922d80c1d133b6261b8af1d521567d2c0a35d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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();
    }
}