替换
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
using Yarn.Unity;
|
||||
|
||||
namespace AibisDream.FixSystem
|
||||
{
|
||||
public static class ScreenYarnCommand
|
||||
{
|
||||
private static ScreenSystem ScreenSystem => FixSystemCenter.SystemDic.Get<ScreenSystem>();
|
||||
|
||||
[YarnCommand("open_screen")]
|
||||
public static IEnumerator OpenScreen(string picName = "占位资源")
|
||||
{
|
||||
Sprite sprite = Resources.Load<Sprite>($"Art/Fix/线框图/{picName}");
|
||||
return ScreenSystem.OnLink(sprite);
|
||||
}
|
||||
|
||||
[YarnCommand("close_screen")]
|
||||
public static IEnumerator CloseScreen()
|
||||
{
|
||||
return ScreenSystem.OnUnlink();
|
||||
}
|
||||
|
||||
[YarnCommand("clear_screen")]
|
||||
public static void ClearTextScreen()
|
||||
{
|
||||
ScreenSystem.ClearTextScreen();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user