using System.Collections; using System.Collections.Generic; using UnityEngine; using XFramework; using UnityEngine.UI; public class SceneLoadingPanel : BasePanel { const string panelName = "Panel_SceneLoadingPanel"; Image image_loadingProgress; public SceneLoadingPanel() : base(new UIType(panelName)) { } public override void OnStart() { base.OnStart(); image_loadingProgress.fillAmount = 0; } public override void Change(float newData) { image_loadingProgress.fillAmount = newData; } protected override void InitEvent() { image_loadingProgress = ActivePanel.FindChildTrans("Image_value").GetComponent(); } }