using UnityEngine; using UnityEngine.UI; using ZXKFramework; public class ProcessManagerTest : MonoBehaviour { ProcessManager processManager; Text processText; private void Awake() { processManager = GetComponentInChildren(); processText = transform.FindFirst("ProcessText"); } private void Start() { processManager.Init(); } public void SetProcess(string value) { processManager.SetProcess(value.Split('_')[0], value.Split('_')[1]); processText.text = "当前进度=" + processManager.GetProcess().ToString() + "%"; } public void Clear() { processManager.Clear(); processText.text = "当前进度=" + processManager.GetProcess().ToString() + "%"; } }