Files
EnglewoodLAB/Assets/Scripts/Command/ObjectCommand/SelectedMachineCommand.cs
SOOBEEN HAN f1894889ee <refactor> Octopus Twin 템플릿 적용
- 기능 외 UI 구조만 적용
- 프로젝트에 걸맞는 UI는 재작업 필요
2026-02-23 18:20:09 +09:00

27 lines
737 B
C#

using EnglewoodLAB;
using UVC.UI.Commands;
namespace EngleWoodLAB.UI.Command
{
public class SelectedMachineCommand : ICommand
{
private Machine machine;
public SelectedMachineCommand(Machine machine)
{
this.machine = machine;
}
public SelectedMachineCommand(string machineCode)
{
var building = SceneMain.Instance.building;
var machines = building.GetMachines();
this.machine = machines.Find(x => x.code == machineCode);
}
public void Execute(object? parameter = null)
{
var viewManager = SceneMain.Instance.viewManager;
viewManager.SetTargetPosToMachine(machine);
}
}
}