47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
using AibisDream.FixSystem;
|
|
using UnityEngine;
|
|
using Yarn.Unity;
|
|
|
|
namespace AibisDream
|
|
{
|
|
public static class ScreenYarnCommand
|
|
{
|
|
private static ScreenSystem ScreenSystem => FixSystemCenter.SystemDic.Get<ScreenSystem>();
|
|
|
|
[YarnCommand("clear_screen")]
|
|
public static void ClearTextScreen()
|
|
{
|
|
ScreenSystem.ClearTextScreen();
|
|
}
|
|
|
|
[YarnCommand("complete_task")]
|
|
public static void CompleteTask(string lineId)
|
|
{
|
|
ScreenSystem.TaskScreen.CompleteTask(lineId);
|
|
}
|
|
|
|
[YarnCommand("clear_tasks")]
|
|
public static void ClearTasks()
|
|
{
|
|
ScreenSystem.TaskScreen.ClearTasks();
|
|
}
|
|
|
|
[YarnCommand("task_moveIn")]
|
|
public static void ShowTask()
|
|
{
|
|
Debug.LogWarning("task_moveIn 已废弃,请尽快删除");
|
|
}
|
|
|
|
[YarnCommand("task_moveOut")]
|
|
public static void HideTask()
|
|
{
|
|
Debug.LogWarning("task_moveOut 已废弃,请尽快删除");
|
|
}
|
|
|
|
[YarnCommand("show_task_panel")]
|
|
public static void ShowTaskPanel()
|
|
{
|
|
ScreenSystem.ShowTaskPanel();
|
|
}
|
|
}
|
|
} |