DI 추가

This commit is contained in:
logonkhi
2025-12-15 20:17:38 +09:00
parent ab86affa32
commit 0df2f0d8da
131 changed files with 19661 additions and 554 deletions

View File

@@ -4,10 +4,6 @@ using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.EventSystems;
using UVC.Core;
using UVC.Factory;
using UVC.Factory.Cameras;
namespace UVC.UI.Window.PropertyWindow
{
@@ -16,7 +12,7 @@ namespace UVC.UI.Window.PropertyWindow
/// Model과 View 사이의 중재자 역할을 합니다.
/// 그룹과 개별 아이템을 혼용하여 사용할 수 있습니다.
/// </summary>
public class PropertyWindow : SingletonScene<PropertyWindow>, IPointerEnterHandler, IPointerExitHandler
public class PropertyWindow : MonoBehaviour
{
[SerializeField]
private PropertyView _view;
@@ -508,27 +504,16 @@ namespace UVC.UI.Window.PropertyWindow
public void Hide()
{
gameObject.SetActive(false);
FactoryCameraController.Instance.Enable = true;
}
#endregion
#region Pointer Events
/// <summary>
/// 마우스 포인터가 이 UI 요소의 영역 안으로 들어왔을 때 호출됩니다.
/// </summary>
public virtual void OnPointerEnter(PointerEventData eventData)
public void ToggleVisibility()
{
FactoryCameraController.Instance.Enable = false;
gameObject.SetActive(!gameObject.activeSelf);
}
/// <summary>
/// 마우스 포인터가 이 UI 요소의 영역 밖으로 나갔을 때 호출됩니다.
/// </summary>
public virtual void OnPointerExit(PointerEventData eventData)
public void SetVisibility(bool visible)
{
FactoryCameraController.Instance.Enable = true;
gameObject.SetActive(visible);
}
#endregion