48 lines
1.4 KiB
C#
48 lines
1.4 KiB
C#
using System.Collections;
|
|
using Yarn.Unity;
|
|
|
|
namespace AibisDream
|
|
{
|
|
public static class DreamDoorYarnCommand
|
|
{
|
|
/// <summary>
|
|
/// 显示整个门(仅 background + Frame)。默认门是隐藏的,需先调用此命令。
|
|
/// </summary>
|
|
[YarnCommand("show_door")]
|
|
public static IEnumerator ShowDoor(float duration = 0f)
|
|
{
|
|
yield return DreamDoorSystem.Instance.ShowDoor(duration);
|
|
}
|
|
|
|
[YarnCommand("show_door_glass_sea")]
|
|
public static IEnumerator ShowDoorGlassSea(float duration = 2f)
|
|
{
|
|
yield return DreamDoorSystem.Instance.ShowGlassSea(duration);
|
|
}
|
|
|
|
[YarnCommand("hide_door_glass_sea")]
|
|
public static IEnumerator HideDoorGlassSea(float duration = 1f)
|
|
{
|
|
yield return DreamDoorSystem.Instance.HideGlassSea(duration);
|
|
}
|
|
|
|
[YarnCommand("show_door_code_sea")]
|
|
public static IEnumerator ShowDoorCodeSea(float duration = 2f)
|
|
{
|
|
yield return DreamDoorSystem.Instance.ShowCodeSea(duration);
|
|
}
|
|
|
|
[YarnCommand("show_dream_terminal")]
|
|
public static IEnumerator ShowDreamTerminal()
|
|
{
|
|
yield return DreamDoorSystem.Instance.ShowTerminal();
|
|
}
|
|
|
|
[YarnCommand("hide_dream_door")]
|
|
public static void HideDreamDoor()
|
|
{
|
|
DreamDoorSystem.Instance.HideAll();
|
|
}
|
|
}
|
|
}
|