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.
28 lines
725 B
28 lines
725 B
using System; |
|
using System.Collections; |
|
using System.Collections.Generic; |
|
using AX.MessageSystem; |
|
using UnityEngine; |
|
|
|
/// <summary> |
|
/// 泄露1灾情库记录 |
|
/// </summary> |
|
public class Leak1DisasterRecord : DisasterLibraryRecord |
|
{ |
|
public Leak1Disaster leak1Disaster = new Leak1Disaster(); |
|
|
|
public override void DLRecord(IMessage obj) |
|
{ |
|
DisasterRecord(leak1Disaster); |
|
} |
|
|
|
public override void DisasterRecord(Disaster disaster) |
|
{ |
|
base.DisasterRecord(disaster); |
|
|
|
//泄露1没有特殊的初始属性值需要记录 |
|
|
|
((Leak1Disaster)disaster).OilTankId = GetComponent<Leak1Controller>().OilTankId; |
|
DisasterLibraryFile.Instance.DisasterRecord(disaster); |
|
} |
|
}
|
|
|