yyl
3 天以前 cec8b67d82c2c2c1662d55c818c4a46bcc0487db
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
using UnityEngine;
using System.Collections.Generic;
using System;
using LitJson;
 
 
public class BattleEndAction : RecordAction
{
    //  奖励数据之类的
    protected JsonData endData;
 
    protected Action onComplete;
 
    public BattleEndAction(BattleField _battleField, JsonData _endData, Action _onComplete)
        : base(RecordActionType.Death, _battleField, null)
    {
        endData = _endData;
        onComplete = _onComplete;
    }
 
    public override void Run()
    {
        base.Run();
 
        Debug.Log("Battle Ended");
        onComplete?.Invoke();
        isFinish = true;
    }
 
    public override bool IsFinished()
    {
        return isFinish;
    }
 
}