87 lines
2.5 KiB
C#
87 lines
2.5 KiB
C#
using System.Collections;
|
|
using AibisDream.Framework;
|
|
using Yarn.Unity;
|
|
|
|
namespace AibisDream.FixSystem
|
|
{
|
|
public static class CoolingSystemCommand
|
|
{
|
|
// 打开冷却系统UI
|
|
[YarnCommand("open_cooling_system")]
|
|
public static IEnumerator OpenCoolingSystem()
|
|
{
|
|
var cooling = FixSystemCenter.SystemDic.Get<CoolingSystem>();
|
|
return cooling.OpenCoolingSystem();
|
|
}
|
|
|
|
// 插管
|
|
[YarnCommand("link_tube")]
|
|
public static IEnumerator LinkTube()
|
|
{
|
|
var cooling = FixSystemCenter.SystemDic.Get<CoolingSystem>();
|
|
return cooling.LinkTube();
|
|
}
|
|
|
|
// 打开左侧冷却液界面
|
|
[YarnCommand("open_bottle_ui")]
|
|
public static IEnumerator OpenBottleUI()
|
|
{
|
|
var cooling = FixSystemCenter.SystemDic.Get<CoolingSystem>();
|
|
return cooling.OpenBottleUI();
|
|
}
|
|
|
|
// 打开卡扣
|
|
[YarnCommand("unlock")]
|
|
public static void Unlock()
|
|
{
|
|
var cooling = FixSystemCenter.SystemDic.Get<CoolingSystem>();
|
|
cooling.Unlock();
|
|
}
|
|
|
|
// 关闭卡扣
|
|
[YarnCommand("lock")]
|
|
public static void Lock()
|
|
{
|
|
var cooling = FixSystemCenter.SystemDic.Get<CoolingSystem>();
|
|
cooling.Lock();
|
|
}
|
|
|
|
// 点击泵机开关
|
|
[YarnCommand("start_pump")]
|
|
public static void StartPump()
|
|
{
|
|
var cooling = FixSystemCenter.SystemDic.Get<CoolingSystem>();
|
|
cooling.StartPump();
|
|
}
|
|
|
|
// 冷却液架收回
|
|
[YarnCommand("close_bottle_ui")]
|
|
public static IEnumerator CloseBottleUI()
|
|
{
|
|
var cooling = FixSystemCenter.SystemDic.Get<CoolingSystem>();
|
|
return cooling.CloseBottleUI();
|
|
}
|
|
|
|
// 冷却系统UI收回
|
|
[YarnCommand("close_cooling_system")]
|
|
public static IEnumerator CloseCoolingSystem()
|
|
{
|
|
var cooling = FixSystemCenter.SystemDic.Get<CoolingSystem>();
|
|
return cooling.CloseCoolingSystem();
|
|
}
|
|
|
|
// 拔管
|
|
[YarnCommand("pull_out_tube")]
|
|
public static IEnumerator PullOutTube()
|
|
{
|
|
var cooling = FixSystemCenter.SystemDic.Get<CoolingSystem>();
|
|
return cooling.PullOutTube();
|
|
}
|
|
|
|
// 运行结束
|
|
public static void StopPump()
|
|
{
|
|
var cooling = FixSystemCenter.SystemDic.Get<CoolingSystem>();
|
|
}
|
|
}
|
|
} |