40 lines
958 B
C#
40 lines
958 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using System.Xml;
|
|
using System.IO;
|
|
using System.Linq;
|
|
|
|
public class FaultManager : BaseManager<FaultManager>
|
|
{
|
|
public List<string> Faults = new List<string>();
|
|
public FaultOptions originalFaultOptions = new FaultOptions();
|
|
public FaultOptions selectedFaultOptions = new FaultOptions();
|
|
|
|
FaultManager() { }
|
|
|
|
public void InitFaults(List<string> SelectedFaults)
|
|
{
|
|
//¶Áȡ԰æµÄ¹ÊÕÏÑ¡Ïî
|
|
originalFaultOptions = JsonManager.Instance.LoadData<FaultOptions>("FaultOptions");
|
|
|
|
if (Faults.Count > 0) Faults.Clear();
|
|
Faults = new List<string>(SelectedFaults);
|
|
|
|
selectedFaultOptions = originalFaultOptions.GetSelectedFaultOptions(Faults);
|
|
|
|
}
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|