<feat> 프로그램 진입 시 로봇 모터 ON/OFF 표시
This commit is contained in:
@@ -15,6 +15,7 @@ public class ProgramView : MonoBehaviour
|
||||
//[SerializeField] private TextMeshProUGUI endpointListText;
|
||||
|
||||
// --- 프로그램 목록 패널 ---
|
||||
[SerializeField] private GameObject programSelectPanel;
|
||||
[SerializeField] private GameObject programListPanel;
|
||||
[SerializeField] private Transform programButtonContent;
|
||||
[SerializeField] private GameObject programButtonPrefab;
|
||||
@@ -49,6 +50,7 @@ public class ProgramView : MonoBehaviour
|
||||
loadIconButton.onClick.AddListener(HandleLoadIconClick);
|
||||
closeProgramListButton.onClick.AddListener(HideProgramList);
|
||||
|
||||
programSelectPanel.SetActive(true);
|
||||
programListPanel.SetActive(false);
|
||||
loadProgramButton.gameObject.SetActive(false);
|
||||
programIdText.text = string.Empty;
|
||||
@@ -86,12 +88,14 @@ public class ProgramView : MonoBehaviour
|
||||
|
||||
public void DisplayProgram(RobotProgram program)
|
||||
{
|
||||
//if (program == null)
|
||||
//{
|
||||
// currentProgramIdText.text = "No Program Loaded";
|
||||
// endpointListText.text = "";
|
||||
// return;
|
||||
//}
|
||||
if (program == null)
|
||||
{
|
||||
//currentProgramIdText.text = "No Program Loaded";
|
||||
//endpointListText.text = "";
|
||||
Debug.Log("No Program Loaded");
|
||||
return;
|
||||
}
|
||||
Debug.Log($"연결된 프로그램: {program.programId}.job");
|
||||
|
||||
//currentProgramIdText.text = "Current: " + program.programId;
|
||||
|
||||
@@ -137,4 +141,9 @@ public class ProgramView : MonoBehaviour
|
||||
{
|
||||
programListPanel.SetActive(false);
|
||||
}
|
||||
|
||||
public void HideProgramSelectPanel()
|
||||
{
|
||||
programSelectPanel.SetActive(false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user