생산, 조립 진행 현황판 기능 개선
This commit is contained in:
@@ -31,15 +31,16 @@ public class Panel_AssemblyProduction : PanelBase
|
|||||||
}
|
}
|
||||||
public void Open()
|
public void Open()
|
||||||
{
|
{
|
||||||
effect.gameObject.SetActive(true);
|
effect.ActivePanel(gameObject);
|
||||||
gameObject.SetActive(true);
|
gameObject.SetActive(true);
|
||||||
|
gameObject.transform.SetAsLastSibling();
|
||||||
|
|
||||||
StopAllCoroutines();
|
StopAllCoroutines();
|
||||||
StartCoroutine(ScaleUp());
|
StartCoroutine(ScaleUp());
|
||||||
}
|
}
|
||||||
public void Close()
|
public void Close()
|
||||||
{
|
{
|
||||||
effect.gameObject.SetActive(false);
|
effect.DeactivePanel(gameObject);
|
||||||
gameObject.SetActive(false);
|
gameObject.SetActive(false);
|
||||||
gameObject.transform.localScale = Vector3.zero;
|
gameObject.transform.localScale = Vector3.zero;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,4 +5,32 @@ using WI;
|
|||||||
|
|
||||||
public class Panel_Effect : MonoBehaviour, ISingle
|
public class Panel_Effect : MonoBehaviour, ISingle
|
||||||
{
|
{
|
||||||
|
public int activeCount;
|
||||||
|
|
||||||
|
private List<GameObject> activePanel = new();
|
||||||
|
|
||||||
|
public void ActivePanel(GameObject panelObject)
|
||||||
|
{
|
||||||
|
if (!activePanel.Contains(panelObject))
|
||||||
|
{
|
||||||
|
activePanel.Add(panelObject);
|
||||||
|
activeCount++;
|
||||||
|
}
|
||||||
|
|
||||||
|
gameObject.SetActive(true);
|
||||||
|
}
|
||||||
|
public void DeactivePanel(GameObject panelObject)
|
||||||
|
{
|
||||||
|
if (activeCount > 0)
|
||||||
|
{
|
||||||
|
activePanel.Remove(panelObject);
|
||||||
|
|
||||||
|
activeCount--;
|
||||||
|
|
||||||
|
if (activeCount <= 0)
|
||||||
|
{
|
||||||
|
gameObject.SetActive(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,15 +32,16 @@ public class Panel_InjectionProduction : PanelBase
|
|||||||
}
|
}
|
||||||
public void Open()
|
public void Open()
|
||||||
{
|
{
|
||||||
effect.gameObject.SetActive(true);
|
effect.ActivePanel(gameObject);
|
||||||
gameObject.SetActive(true);
|
gameObject.SetActive(true);
|
||||||
|
gameObject.transform.SetAsLastSibling();
|
||||||
|
|
||||||
StopAllCoroutines();
|
StopAllCoroutines();
|
||||||
StartCoroutine(ScaleUp());
|
StartCoroutine(ScaleUp());
|
||||||
}
|
}
|
||||||
public void Close()
|
public void Close()
|
||||||
{
|
{
|
||||||
effect.gameObject.SetActive(false);
|
effect.DeactivePanel(gameObject);
|
||||||
gameObject.SetActive(false);
|
gameObject.SetActive(false);
|
||||||
gameObject.transform.localScale = Vector3.zero;
|
gameObject.transform.localScale = Vector3.zero;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,15 +32,16 @@ public class Panel_WorkProgressStatus : PanelBase
|
|||||||
}
|
}
|
||||||
public void Open()
|
public void Open()
|
||||||
{
|
{
|
||||||
effect.gameObject.SetActive(true);
|
effect.ActivePanel(gameObject);
|
||||||
gameObject.SetActive(true);
|
gameObject.SetActive(true);
|
||||||
|
gameObject.transform.SetAsLastSibling();
|
||||||
|
|
||||||
StopAllCoroutines();
|
StopAllCoroutines();
|
||||||
StartCoroutine(ScaleUp());
|
StartCoroutine(ScaleUp());
|
||||||
}
|
}
|
||||||
public void Close()
|
public void Close()
|
||||||
{
|
{
|
||||||
effect.gameObject.SetActive(false);
|
effect.DeactivePanel(gameObject);
|
||||||
gameObject.SetActive(false);
|
gameObject.SetActive(false);
|
||||||
gameObject.transform.localScale = Vector3.zero;
|
gameObject.transform.localScale = Vector3.zero;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1150,7 +1150,7 @@
|
|||||||
"sttm": "0758",
|
"sttm": "0758",
|
||||||
"totm": "",
|
"totm": "",
|
||||||
"goaltime": "530",
|
"goaltime": "530",
|
||||||
"ptotm": "2025-03-20 11:51:27",
|
"ptotm": "2025-03-20 21:35:36",
|
||||||
"psttm": "2025-03-17 07:58:12"
|
"psttm": "2025-03-17 07:58:12"
|
||||||
},
|
},
|
||||||
"isCheck": false
|
"isCheck": false
|
||||||
|
|||||||
Reference in New Issue
Block a user