41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using System.Collections;
|
|
using AibisDream.FixSystem;
|
|
using UnityEngine;
|
|
using Yarn.Unity;
|
|
|
|
namespace AibisDream
|
|
{
|
|
public static class GearYarnCommand
|
|
{
|
|
[YarnCommand("move_needle")]
|
|
public static IEnumerator MoveNeedle()
|
|
{
|
|
DialogController.Instance.TryGetVariable<float>("$discIdx", out var discIdx);
|
|
return FixSystemCenter.SystemDic.Get<GearSystem>().MoveNeedle((int) 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();
|
|
}
|
|
}
|
|
} |