천장 오브젝트 복원 및 설비 시간 알람 로딩 바 추가
This commit is contained in:
@@ -101,9 +101,6 @@ namespace CHN
|
||||
{
|
||||
SetAllFloorExternalState();
|
||||
|
||||
if (!controller.option.isFirstPersonView)
|
||||
return;
|
||||
|
||||
currentFloor.SetInternalState();
|
||||
}
|
||||
|
||||
|
||||
@@ -87,6 +87,7 @@ namespace CHN
|
||||
|
||||
datamanager.onSimpleInfo += popupCanvas.SimpleView;
|
||||
datamanager.onCompleteInfo += popupCanvas.DetailView;
|
||||
mqttManager.onNotloadData += popupCanvas.panel_completealramhistory.ActiveLoadingImage;
|
||||
mqttManager.onMachineData += datamanager.MachineMatching;
|
||||
mqttManager.onMachineData += completeTimeManager.SetCurrentData;
|
||||
mqttManager.onMachineData += productionStatusManager.SetFloorProductionStatus;
|
||||
@@ -121,11 +122,6 @@ namespace CHN
|
||||
optionManager.LoadOption();
|
||||
}
|
||||
|
||||
public override void AfterStart()
|
||||
{
|
||||
controller.onCameraMove += building.UnderCeilingControl;
|
||||
}
|
||||
|
||||
private void ExitProgram()
|
||||
{
|
||||
var mqtt = FindSingle<MQTT>();
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CHN
|
||||
public GameObject Outer;
|
||||
public GameObject TopSurfaces;
|
||||
public GameObject FloorGroundCollider;
|
||||
//public GameObject Ceiling;
|
||||
public GameObject Ceiling;
|
||||
public GameObject VisualizationAreas;
|
||||
Transform CeilingQuad;
|
||||
|
||||
@@ -33,9 +33,9 @@ namespace CHN
|
||||
case nameof(FloorGroundCollider):
|
||||
FloorGroundCollider = transform.GetChild(i).gameObject;
|
||||
break;
|
||||
//case nameof(Ceiling):
|
||||
// Ceiling = transform.GetChild(i).gameObject;
|
||||
// break;
|
||||
case nameof(Ceiling):
|
||||
Ceiling = transform.GetChild(i).gameObject;
|
||||
break;
|
||||
case nameof(VisualizationAreas):
|
||||
VisualizationAreas = transform.GetChild(i).gameObject;
|
||||
break;
|
||||
@@ -62,14 +62,14 @@ namespace CHN
|
||||
|
||||
public void SetInternalState()
|
||||
{
|
||||
//Ceiling.SetActive(true);
|
||||
Ceiling.SetActive(true);
|
||||
TopSurfaces.SetActive(false);
|
||||
}
|
||||
|
||||
public void SetExternalState()
|
||||
{
|
||||
TopSurfaces.SetActive(false);
|
||||
//Ceiling.SetActive(false);
|
||||
Ceiling.SetActive(false);
|
||||
}
|
||||
|
||||
public void UnderCeilingControl(Vector3 pos)
|
||||
@@ -77,9 +77,10 @@ namespace CHN
|
||||
//if (Ceiling == null)
|
||||
// return;
|
||||
|
||||
//float height = CeilingQuad.transform.position.y - ceilingActiveRange;
|
||||
//float height = Ceiling.transform.position.y - ceilingActiveRange;
|
||||
|
||||
//bool isUnder = pos.y < height;
|
||||
//Debug.Log(isUnder);
|
||||
//Ceiling.SetActive(isUnder);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,8 +24,13 @@ public class MQTT : Protocol, ISingle, IOptionable
|
||||
|
||||
private int portData;
|
||||
private string[] subscriptionTopics;
|
||||
public event Action<bool> onNotloadData;
|
||||
public event Action<List<CompleteInfo>> onMachineData;
|
||||
public event Action<List<WorkShopInfo>> onWorkshopData;
|
||||
public void Awake()
|
||||
{
|
||||
onNotloadData?.Invoke(true);
|
||||
}
|
||||
public void Start()
|
||||
{
|
||||
MQTTConnect();
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CHN
|
||||
public UI_CompleteTimeAlarmInfo prefab_completeTimeAlarmInfo;
|
||||
public ScrollRect ScrollView_CompleteAlramHistory;
|
||||
public Button Button_Close;
|
||||
public Image Image_Loading;
|
||||
|
||||
public Dictionary<string, UI_CompleteTimeAlarmInfo> completeInfoList = new();
|
||||
public List<UI_CompleteTimeAlarmInfo> notCheckAlramList = new();
|
||||
@@ -45,8 +46,15 @@ namespace CHN
|
||||
{
|
||||
onDashobardClose?.Invoke("완료 시간 알람");
|
||||
}
|
||||
public void ActiveLoadingImage(bool isActive)
|
||||
{
|
||||
var active = isActive ? false : true;
|
||||
Image_Loading.gameObject.SetActive(active);
|
||||
}
|
||||
public void SetAlarmInfoItems(List<CompleteTimeAlarmData> infos)
|
||||
{
|
||||
ActiveLoadingImage(true);
|
||||
|
||||
for (int i = 0; i < infos.Count; i++)
|
||||
{
|
||||
if (completeInfoList.ContainsKey(infos[i].completeInfo.worknm))
|
||||
|
||||
Reference in New Issue
Block a user