53 lines
1.5 KiB
C#
53 lines
1.5 KiB
C#
using System.Collections;
|
|
using AibisDream.FixSystem;
|
|
using Yarn.Unity;
|
|
|
|
namespace AibisDream
|
|
{
|
|
public static class GearYarnCommand
|
|
{
|
|
private static GearSystem GearSystem => FixSystemCenter.SystemDic.Get<GearSystem>();
|
|
|
|
[YarnCommand("move_needle")]
|
|
public static IEnumerator MoveNeedle(int discIdx)
|
|
{
|
|
return FixSystemCenter.SystemDic.Get<GearSystem>().MoveNeedle(discIdx);
|
|
}
|
|
|
|
[YarnCommand("open_gear_panel")]
|
|
public static IEnumerator OpenGearPanel()
|
|
{
|
|
return FixSystemCenter.SystemDic.Get<GearSystem>().OpenGearPanel();
|
|
}
|
|
|
|
[YarnCommand("close_gear_panel")]
|
|
public static IEnumerator CloseGearPanel()
|
|
{
|
|
return FixSystemCenter.SystemDic.Get<GearSystem>().CloseGearPanel();
|
|
}
|
|
|
|
[YarnCommand("close_gear_cover")]
|
|
public static IEnumerator CloseCover()
|
|
{
|
|
return FixSystemCenter.SystemDic.Get<GearSystem>().CloseCover();
|
|
}
|
|
|
|
[YarnCommand("open_gear_cover")]
|
|
public static IEnumerator OpenCover()
|
|
{
|
|
return FixSystemCenter.SystemDic.Get<GearSystem>().OpenCover();
|
|
}
|
|
|
|
[YarnCommand("popup_gear")]
|
|
public static void PopupGearByName(string shaftName)
|
|
{
|
|
GearSystem.PopupGearByShaftName(shaftName);
|
|
}
|
|
|
|
[YarnCommand("load_gear_panel")]
|
|
public static void LoadPanelShaft(string configKey)
|
|
{
|
|
GearSystem.LoadPanelShaft(configKey);
|
|
}
|
|
}
|
|
} |