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
using UnityEngine;
using System.Collections.Generic;
using System;
 
public class RoundChangeAction : RecordAction
{
    private Action roundChangeCallback;
 
    public RoundChangeAction(BattleField _battleField, Action _roundChangeCallback = null)
        : base(RecordActionType.RoundChange, _battleField, null)
    {
        roundChangeCallback = _roundChangeCallback;
    }
 
    public override void ForceFinish()
    {
        if (isFinish)
            return;
 
        roundChangeCallback?.Invoke();
        isFinish = true;
    }
 
    public override void Run()
    {
        if (isFinish)
            return;
        base.Run();
        roundChangeCallback?.Invoke();
        isFinish = true;
    }
}