void FindUseType(UIBaseScript _UI) { if (_UI is TopAssetUIManagerScript || _UI is LobbyUIManagerScript || _UI is GameStartManagerScript || _UI is BottomUIManagerScript) { _UseType = UI_UseType.OutGame; } else { _UseType = UI_UseType.InGame; } }
/// <summary>UseType에 해당하는 UI만 On, 다른 타입은 Off</summary> public void ActivateUI_By_UseType(UI_UseType _OnUseType) { foreach (var item in dic_UI) { if (item.Value._UseType == _OnUseType) { item.Value.gameObject.SetActive(true); } else { item.Value.gameObject.SetActive(false); } } }