添加指针
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using UnityEngine;
|
||||
using DG.Tweening;
|
||||
using System.Collections;
|
||||
using Yarn.Unity;
|
||||
|
||||
namespace AibisDream.FixSystem
|
||||
{
|
||||
@@ -87,9 +88,54 @@ namespace AibisDream.FixSystem
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
//
|
||||
// public struct
|
||||
|
||||
/// <summary>
|
||||
/// 示波器接口。暂时能想到的就是这几个对外接口
|
||||
/// 用示波器显示对话的部分额外实现IDialogView接口。这部分方案定下来之后老丁来实现。
|
||||
/// </summary>
|
||||
public interface IOscilloscopeSystem
|
||||
{
|
||||
/// <summary>
|
||||
/// 展示示波器上的图片和检测点位
|
||||
/// </summary>
|
||||
/// /// <param name="moduleImage">显示在示波器里的图片</param>
|
||||
/// <param name="checkPoints">检查点信息</param>
|
||||
public IEnumerator ShowScanImage(Sprite moduleImage, CheckPoint[] checkPoints);
|
||||
|
||||
/// <summary>
|
||||
/// 聚焦到某个点上
|
||||
/// </summary>
|
||||
/// <param name="checkPointId">检查点</param>
|
||||
public IEnumerator FocusOnPoint(string checkPointId);
|
||||
|
||||
/// <summary>
|
||||
/// 停止聚焦
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public IEnumerator StopFocus();
|
||||
|
||||
/// <summary>
|
||||
/// 隐藏显示屏上的图像
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public IEnumerator HideScanImage();
|
||||
}
|
||||
|
||||
public static class OscilloscopeYarnCommand
|
||||
{
|
||||
private static IOscilloscopeSystem OscilloscopeSystem => FixSystemCenter.SystemDic.Get<IOscilloscopeSystem>();
|
||||
|
||||
[YarnCommand("focus_on_point")]
|
||||
public static IEnumerator FocusOnPoint(string checkPointId)
|
||||
{
|
||||
return OscilloscopeSystem?.FocusOnPoint(checkPointId);
|
||||
}
|
||||
|
||||
[YarnCommand("stop_focus")]
|
||||
public static IEnumerator StopFocus()
|
||||
{
|
||||
return OscilloscopeSystem?.StopFocus();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user