using UnityEngine;
using System;
namespace XWFramework.UI {
public static class UIExtensions
{
///
/// 激活某个panel
///
///
///
//public static void Show(this UIPanel self,UIType type) {
// foreach (var ui in UIManageruiDicts.Values) {
// if (UIManager.oftenShow == ui) {
// continue;
// }
// ui.gameObject.SetActive(false);
// }
// UIManager.uiDicts[self.type].gameObject.SetActive(true);
// UIManager.uiDicts[type].gameObject.SetActive(true);
//}
//public static void Show(this UIPanel self)
//{
// foreach (var ui in UIManager.uiDicts.Values)
// {
// if (UIManager.oftenShow == ui)
// {
// continue;
// }
// ui.gameObject.SetActive(false);
// }
// UIManager.uiDicts[self.type].gameObject.SetActive(true);
//}
/////
///// 关闭某个panel
/////
/////
/////
//public static void Close(this UIPanel self, params GameObject[] objs) {
// foreach (var obj in objs)
// {
// obj.SetActive(false);
// }
// self.gameObject.SetActive(false);
//}
}
}