설비 대시보드, 작업 시간/조건 분석 UI 디자인 Black 으로 변경 및 애니메이션 속도 조정

This commit is contained in:
정영민
2025-08-26 09:40:05 +09:00
parent 0bdaf95630
commit 8189e1da19
57 changed files with 932 additions and 2712 deletions

View File

@@ -18,7 +18,7 @@ namespace CHN
public Sprite previewImage;
public Vector3 centerPos;
public Animator animator;
public Animator[] animators;
public HighLighter highLighter;
public float animSpeed;
@@ -33,47 +33,36 @@ namespace CHN
return;
GetComponentInParent<Floor>().machines.Add(this);
centerPos = transform.GetMeshGroupCenter();
animator = GetComponentInChildren<Animator>();
animators = GetComponentsInChildren<Animator>();
highLighter = GetComponentInChildren<HighLighter>(true);
}
public void SetAnimationSpeed()
{
if (animator == null)
if (animators.Length == 0)
return;
if (machineKPI != null)
{
if (machineKPI.data.machineInfo.statusnm == null)
return;
{
animSpeed = 0f;
}
if (machineKPI.data.machineInfo.statusnm == "°¡µ¿Áß")
{
if (machineKPI.data.kpiDataInfo.eorate == null)
return;
float.TryParse(machineKPI.data.kpiDataInfo.eorate, out var eorate);
if (eorate <= 0)
{
animSpeed = 1f;
}
else
{
animSpeed = eorate / 100f;
if (animSpeed < 0)
{
animSpeed = 0f;
}
}
animSpeed = UnityEngine.Random.Range(0.7f, 1.5f);
}
else
{
animSpeed = 0f;
}
animator.speed = animSpeed;
foreach(var animator in animators)
{
animator.speed = animSpeed;
}
}
}