GetReferencePosCommand.cs 493 B

12345678910111213141516171819202122
  1. using Blue;
  2. /// <summary>
  3. /// 获取参考物的坐标命令
  4. /// </summary>
  5. public class GetReferencePosCommand : ICommand
  6. {
  7. private int sceneID;
  8. /// <summary>
  9. /// 获取参考物的坐标命令
  10. /// </summary>
  11. /// <param name="sceneID">场景ID</param>
  12. public GetReferencePosCommand(int sceneID)
  13. {
  14. this.sceneID = sceneID;
  15. }
  16. public void OnExcute()
  17. {
  18. this.GetService<IPointService>().GetRefrencePos(sceneID);
  19. }
  20. }