forked from zxl/LaboratoryProtection
41 lines
799 B
C#
41 lines
799 B
C#
//using PMaker.Extension;
|
|
|
|
//using Sirenix.OdinInspector;
|
|
|
|
//using UnityEngine;
|
|
|
|
//[ExecuteAlways]
|
|
//public partial class ProjectSwitcher : BaseBehaviour
|
|
//{
|
|
//#if UNITY_EDITOR
|
|
// public int max;
|
|
|
|
// [PropertyRange(0, "max")]
|
|
// public int index;
|
|
|
|
// [SerializeField]
|
|
// [ReadOnly]
|
|
// private UILoading _loading;
|
|
|
|
// private void Reset()
|
|
// {
|
|
// this._loading = GameObject.FindObjectOfType<UILoading>();
|
|
// }
|
|
|
|
// [ExecuteAlways]
|
|
// private void Update()
|
|
// {
|
|
// if (this._loading != null)
|
|
// {
|
|
// max = _loading.max;
|
|
// if (_loading.index != index)
|
|
// {
|
|
// _loading.index = index;
|
|
// _loading.SetDirty();
|
|
// }
|
|
// return;
|
|
// }
|
|
// }
|
|
//#endif
|
|
//}
|