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
745 B
28 lines
745 B
5 years ago
|
using System;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using AX.MessageSystem;
|
||
|
using UnityEngine;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 泄露2灾情库记录
|
||
|
/// </summary>
|
||
|
public class Leak2DisasterRecord : DisasterLibraryRecord
|
||
|
{
|
||
|
public Leak2Disaster leak2Disaster = new Leak2Disaster();
|
||
|
|
||
|
public override void DLRecord(IMessage obj)
|
||
|
{
|
||
|
DisasterRecord(leak2Disaster);
|
||
|
}
|
||
|
|
||
|
public override void DisasterRecord(Disaster disaster)
|
||
|
{
|
||
|
base.DisasterRecord(disaster);
|
||
|
((Leak2Disaster)disaster).OilTankId = GetComponent<Leak2Controller>().OilTankId;
|
||
|
((Leak2Disaster)disaster).level = GetComponent<Leak2Controller>().level;
|
||
|
|
||
|
DisasterLibraryFile.Instance.DisasterRecord(disaster);
|
||
|
}
|
||
|
}
|