29 lines
807 B
C#
29 lines
807 B
C#
|
|
using UnityEngine;
|
|||
|
|
using UnityEngine.UI;
|
|||
|
|
using ZXKFramework;
|
|||
|
|
|
|||
|
|
public class ProcessManagerTest : MonoBehaviour
|
|||
|
|
{
|
|||
|
|
ProcessManager processManager;
|
|||
|
|
Text processText;
|
|||
|
|
private void Awake()
|
|||
|
|
{
|
|||
|
|
processManager = GetComponentInChildren<ProcessManager>();
|
|||
|
|
processText = transform.FindFirst<Text>("ProcessText");
|
|||
|
|
}
|
|||
|
|
private void Start()
|
|||
|
|
{
|
|||
|
|
processManager.Init();
|
|||
|
|
}
|
|||
|
|
public void SetProcess(string value)
|
|||
|
|
{
|
|||
|
|
processManager.SetProcess(value.Split('_')[0], value.Split('_')[1]);
|
|||
|
|
processText.text = "<22><>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>=" + processManager.GetProcess().ToString() + "%";
|
|||
|
|
}
|
|||
|
|
public void Clear()
|
|||
|
|
{
|
|||
|
|
processManager.Clear();
|
|||
|
|
processText.text = "<22><>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>=" + processManager.GetProcess().ToString() + "%";
|
|||
|
|
}
|
|||
|
|
}
|