1. UIButton.cs 파일 하나로 버튼 동작 청사진 만들기
- 씬 <> UI매니저 <> 버튼 <> 인풋 매니저 <> 컨트롤러
This commit is contained in:
Seonkyu.kim 2025-10-14 13:54:45 +09:00
parent ced3ac0bd9
commit c0eeb5455c
564 changed files with 44527 additions and 16756 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@ -472,22 +472,22 @@
<HintPath>/Applications/Unity/Hub/Editor/6000.2.2f1/Unity.app/Contents/Managed/UnityEngine/UnityEditor.XRModule.dll</HintPath>
</Reference>
<Reference Include="Unity.Collections.LowLevel.ILSupport">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/PackageCache/com.unity.collections@d49facba0036/Unity.Collections.LowLevel.ILSupport/Unity.Collections.LowLevel.ILSupport.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/PackageCache/com.unity.collections@d49facba0036/Unity.Collections.LowLevel.ILSupport/Unity.Collections.LowLevel.ILSupport.dll</HintPath>
</Reference>
<Reference Include="nunit.framework">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/PackageCache/com.unity.ext.nunit@031a54704bff/net40/unity-custom/nunit.framework.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/PackageCache/com.unity.ext.nunit@031a54704bff/net40/unity-custom/nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System.IO.Hashing">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/PackageCache/com.unity.collections@d49facba0036/Unity.Collections.Tests/System.IO.Hashing/System.IO.Hashing.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/PackageCache/com.unity.collections@d49facba0036/Unity.Collections.Tests/System.IO.Hashing/System.IO.Hashing.dll</HintPath>
</Reference>
<Reference Include="Unity.VisualScripting.Antlr3.Runtime">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/PackageCache/com.unity.visualscripting@6279e2b7c485/Runtime/VisualScripting.Flow/Dependencies/NCalc/Unity.VisualScripting.Antlr3.Runtime.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/PackageCache/com.unity.visualscripting@6279e2b7c485/Runtime/VisualScripting.Flow/Dependencies/NCalc/Unity.VisualScripting.Antlr3.Runtime.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/PackageCache/com.unity.nuget.mono-cecil@d78732e851eb/Mono.Cecil.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/PackageCache/com.unity.nuget.mono-cecil@d78732e851eb/Mono.Cecil.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.CompilerServices.Unsafe">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/PackageCache/com.unity.collections@d49facba0036/Unity.Collections.Tests/System.Runtime.CompilerServices.Unsafe/System.Runtime.CompilerServices.Unsafe.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/PackageCache/com.unity.collections@d49facba0036/Unity.Collections.Tests/System.Runtime.CompilerServices.Unsafe/System.Runtime.CompilerServices.Unsafe.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.iOS.Extensions.Xcode">
<HintPath>/Applications/Unity/Hub/Editor/6000.2.2f1/PlaybackEngines/iOSSupport/UnityEditor.iOS.Extensions.Xcode.dll</HintPath>
@ -498,12 +498,6 @@
<Reference Include="UnityEditor.Apple.Extensions.Common">
<HintPath>/Applications/Unity/Hub/Editor/6000.2.2f1/PlaybackEngines/iOSSupport/UnityEditor.Apple.Extensions.Common.dll</HintPath>
</Reference>
<Reference Include="Unity.Android.Types">
<HintPath>/Applications/Unity/Hub/Editor/6000.2.2f1/PlaybackEngines/AndroidPlayer/Unity.Android.Types.dll</HintPath>
</Reference>
<Reference Include="Unity.Android.Gradle">
<HintPath>/Applications/Unity/Hub/Editor/6000.2.2f1/PlaybackEngines/AndroidPlayer/Unity.Android.Gradle.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.iOS.Extensions.Xcode">
<HintPath>/Applications/Unity/Hub/Editor/6000.2.2f1/Unity.app/Contents/PlaybackEngines/MacStandaloneSupport/UnityEditor.iOS.Extensions.Xcode.dll</HintPath>
</Reference>
@ -874,151 +868,151 @@
<HintPath>/Applications/Unity/Hub/Editor/6000.2.2f1/Unity.app/Contents/NetStandard/compat/2.1.0/shims/netfx/mscorlib.dll</HintPath>
</Reference>
<Reference Include="Unity.RenderPipelines.Core.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Core.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Core.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.TextMeshPro">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.TextMeshPro.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.TextMeshPro.dll</HintPath>
</Reference>
<Reference Include="Unity.AI.Navigation">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.AI.Navigation.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.AI.Navigation.dll</HintPath>
</Reference>
<Reference Include="Unity.RenderPipelines.Core.ShaderLibrary">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Core.ShaderLibrary.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Core.ShaderLibrary.dll</HintPath>
</Reference>
<Reference Include="Unity.VisualScripting.SettingsProvider.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.VisualScripting.SettingsProvider.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.VisualScripting.SettingsProvider.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.RenderPipelines.Universal.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Universal.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Universal.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.AI.Navigation.Updater">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.AI.Navigation.Updater.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.AI.Navigation.Updater.dll</HintPath>
</Reference>
<Reference Include="Unity.Timeline">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.Timeline.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.Timeline.dll</HintPath>
</Reference>
<Reference Include="Unity.AI.Navigation.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.AI.Navigation.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.AI.Navigation.Editor.dll</HintPath>
</Reference>
<Reference Include="PPv2URPConverters">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/PPv2URPConverters.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/PPv2URPConverters.dll</HintPath>
</Reference>
<Reference Include="Unity.RenderPipelines.Core.Runtime.Shared">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Core.Runtime.Shared.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Core.Runtime.Shared.dll</HintPath>
</Reference>
<Reference Include="Unity.RenderPipelines.Universal.2D.Runtime">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Universal.2D.Runtime.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Universal.2D.Runtime.dll</HintPath>
</Reference>
<Reference Include="Unity.VisualScripting.Shared.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.VisualScripting.Shared.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.VisualScripting.Shared.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.Searcher.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.Searcher.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.Searcher.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.PlasticSCM.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.PlasticSCM.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.PlasticSCM.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.Burst.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.Burst.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.Burst.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.VisualScripting.Core">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.VisualScripting.Core.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.VisualScripting.Core.dll</HintPath>
</Reference>
<Reference Include="Unity.Mathematics.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.Mathematics.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.Mathematics.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.Rendering.LightTransport.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.Rendering.LightTransport.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.Rendering.LightTransport.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.Rider.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.Rider.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.Rider.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.AI.Navigation.Editor.ConversionSystem">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.AI.Navigation.Editor.ConversionSystem.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.AI.Navigation.Editor.ConversionSystem.dll</HintPath>
</Reference>
<Reference Include="Unity.RenderPipelines.ShaderGraph.ShaderGraphLibrary">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.ShaderGraph.ShaderGraphLibrary.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.ShaderGraph.ShaderGraphLibrary.dll</HintPath>
</Reference>
<Reference Include="Unity.RenderPipelines.Core.Runtime">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Core.Runtime.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Core.Runtime.dll</HintPath>
</Reference>
<Reference Include="Unity.VisualScripting.Flow">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.VisualScripting.Flow.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.VisualScripting.Flow.dll</HintPath>
</Reference>
<Reference Include="Unity.TextMeshPro.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.TextMeshPro.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.TextMeshPro.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.VisualScripting.Flow.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.VisualScripting.Flow.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.VisualScripting.Flow.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.VisualStudio.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.VisualStudio.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.VisualStudio.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.Collections">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.Collections.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.Collections.dll</HintPath>
</Reference>
<Reference Include="Unity.InputSystem.ForUI">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.InputSystem.ForUI.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.InputSystem.ForUI.dll</HintPath>
</Reference>
<Reference Include="Unity.RenderPipelines.GPUDriven.Runtime">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.GPUDriven.Runtime.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.GPUDriven.Runtime.dll</HintPath>
</Reference>
<Reference Include="Unity.Timeline.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.Timeline.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.Timeline.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.VisualScripting.State.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.VisualScripting.State.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.VisualScripting.State.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.Mathematics">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.Mathematics.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.Mathematics.dll</HintPath>
</Reference>
<Reference Include="Unity.RenderPipelines.Universal.Shaders">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Universal.Shaders.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Universal.Shaders.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/UnityEngine.UI.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/UnityEngine.UI.dll</HintPath>
</Reference>
<Reference Include="Unity.Multiplayer.Center.Common">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.Multiplayer.Center.Common.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.Multiplayer.Center.Common.dll</HintPath>
</Reference>
<Reference Include="Unity.Burst">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.Burst.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.Burst.dll</HintPath>
</Reference>
<Reference Include="Unity.VisualScripting.Core.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.VisualScripting.Core.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.VisualScripting.Core.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.Multiplayer.Center.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.Multiplayer.Center.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.Multiplayer.Center.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.RenderPipelines.Universal.Runtime">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Universal.Runtime.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Universal.Runtime.dll</HintPath>
</Reference>
<Reference Include="Unity.Rendering.LightTransport.Runtime">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.Rendering.LightTransport.Runtime.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.Rendering.LightTransport.Runtime.dll</HintPath>
</Reference>
<Reference Include="Unity.VisualScripting.State">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.VisualScripting.State.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.VisualScripting.State.dll</HintPath>
</Reference>
<Reference Include="Unity.RenderPipelines.Universal.Config.Runtime">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Universal.Config.Runtime.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Universal.Config.Runtime.dll</HintPath>
</Reference>
<Reference Include="Unity.RenderPipeline.Universal.ShaderLibrary">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipeline.Universal.ShaderLibrary.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipeline.Universal.ShaderLibrary.dll</HintPath>
</Reference>
<Reference Include="Unity.Collections.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.Collections.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.Collections.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.ShaderGraph.Editor">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.ShaderGraph.Editor.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.ShaderGraph.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.RenderPipelines.Core.Editor.Shared">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Core.Editor.Shared.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.RenderPipelines.Core.Editor.Shared.dll</HintPath>
</Reference>
<Reference Include="Unity.InputSystem">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/Unity.InputSystem.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/Unity.InputSystem.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.UI">
<HintPath>/Users/seankim/1.Program/7. Unity/Practice_Unity/Library/ScriptAssemblies/UnityEditor.UI.dll</HintPath>
<HintPath>/Users/ta9/DEV/Study/Practice_Unity/Library/ScriptAssemblies/UnityEditor.UI.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>

View File

@ -34,6 +34,7 @@ public partial class PlayerController : MonoBehaviour, IDamageable
AI
}
#endregion
// 이벤트
public event Action<int, float, float> OnExpChanged;
@ -114,23 +115,12 @@ public partial class PlayerController : MonoBehaviour, IDamageable
{
Manager.Input.MoveAction -= OnMove;
Manager.Input.MoveAction += OnMove;
Manager.Input.RegisterAction("Button_Attack", OnAttack);
_magnet.OnGetExp -= OnGetExp;
_magnet.OnGetExp += OnGetExp;
// UI가 아직 생성되지 않은 경우, 코루틴을 통해 버튼이 생성될 때까지 대기
// StartCoroutine(WaitForButtonsAndSubscribe());
}
// private IEnumerator WaitForButtonsAndSubscribe()
// {
// while (Manager.Input.Buttons == null) yield return null; // 버튼이 생성될 때까지 한 프레임 대기
// 버튼이 생성되면 이벤트 등록
// Manager.Input.Buttons.OnAttackButtonClicked -= OnAttack;
// Manager.Input.Buttons.OnAttackButtonClicked += OnAttack;
// Manager.Input.Buttons.OnSkillButtonClicked -= OnSkill;
// Manager.Input.Buttons.OnSkillButtonClicked += OnSkill;
// }
// 애니메이터 세팅 (지금은 한 줄 뿐이지만 후에 더 추가될 수도)
void SetAnimator()

View File

@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.InputSystem;
@ -11,11 +12,11 @@ public class InputManager: IManager
public Action<Vector2> PointAction = null;
// 조이스틱의 이동을 담당하는 액션
public Action<Vector2> MoveAction = null;
public Joystick JoyStick { get; set; }
// public Button_Action Buttons { get; set; }
private InputActions _action;
public Joystick JoyStick { get; set; }
private Dictionary<string, Action> _registeredActions = new Dictionary<string, Action>();
bool _pressed = false;
float _pressedTime = 0.0f;
@ -90,6 +91,22 @@ public class InputManager: IManager
}
}
public void RegisterAction(string name, Action action)
{
if (!_registeredActions.ContainsKey(name)) _registeredActions[name] = null;
UnregisterAction(name, action);
_registeredActions[name] += action;
}
public void UnregisterAction(string name, Action action)
{
if (_registeredActions.ContainsKey(name)) _registeredActions[name] -= action;
}
public void OnClicked(string name)
{
if(_registeredActions.TryGetValue(name, out Action action)) action?.Invoke();
}
public void Clear()
{
_action.Dispose();
@ -98,5 +115,7 @@ public class InputManager: IManager
MoveAction = null;
JoyStick = null;
_registeredActions.Clear();
}
}

View File

@ -64,10 +64,12 @@ public class UIManager : IManager
instance.SetActive(false);
}
// T component = instance.GetComponent<T>();
T component = instance.GetComponent<T>();
// if (action != null && component is UIButton button) button.Bind(action);
// if (component is UIButton button) Manager.Input.Buttons.Add(name, button);
return instance.GetComponent<T>();
return component;
}
#region UI Object

View File

@ -21,7 +21,8 @@ public class GameScene : BaseScene
{
atkbtn.SetButtonContents(null,"공", false, true);
atkbtn.SetButtonRect("Button_Attack", new Vector2(50, 150));
atkbtn.Bind(() => Debug.Log("Attack Button Clicked"));
atkbtn.OnButtonClicked += Manager.Input.OnClicked;
// atkbtn.Bind(() => Debug.Log("Attack Button Clicked"));
}
UIButton defbtn = Manager.UI.SwitchOnObject<UIButton>("Button_Defence", true);
@ -35,7 +36,7 @@ public class GameScene : BaseScene
new Vector2(1, 0),
new Vector2(0.5f, 0.5f)
);
defbtn.Bind(() => Debug.Log("Defence Button Clicked"));
// defbtn.Bind(() => Debug.Log("Defence Button Clicked"));
}
Manager.UI.ExclusiveExpBar();

View File

@ -19,7 +19,9 @@ public class UIButton: MonoBehaviour
_button.gameObject.name = _name;
}
}
public event Action<string> OnButtonClicked;
private Button _button;
// 모든 버튼의 백그라운드 동작은 항상
private Image _background;
@ -38,7 +40,11 @@ public class UIButton: MonoBehaviour
private void Awake()
{
if (_button == null) _button = GetComponent<Button>();
if (_button == null)
{
_button = GetComponent<Button>();
_button.onClick.AddListener(() => ClickedButton(Name));
}
if (_background == null) _background = transform.Find("BackGround").GetComponent<Image>();
if (_stackView == null) _stackView = transform.Find("Stack").gameObject;
if (_image == null) _image = transform.Find("Stack/Image").GetComponent<Image>();
@ -122,21 +128,8 @@ public class UIButton: MonoBehaviour
rect.anchoredPosition = anchoredPosition;
}
// 기존에 바인딩된 액션을 모두 제거하고 새로 바인딩
public void Bind(UnityAction action)
void ClickedButton(string buttonName)
{
_button.onClick.RemoveAllListeners();
_button.onClick.AddListener(action);
OnButtonClicked?.Invoke(buttonName);
}
// 기존에 바인딩된 액션을 유지하며 바인딩추가
public void Add(UnityAction action)
{
_button.onClick.AddListener(action);
}
// 버튼 클릭 강제 실행
// 버튼의 onClick 이벤트에 등록된 모든 리스너를 호출
public void Click() => _button.onClick?.Invoke();
}

2267
Assets/_Recovery/0 (5).unity Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: ea4e30e9387ff43ba81f5f2e97f7dda7
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

2267
Assets/_Recovery/0 (6).unity Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 7bfdfb6ca20d54a61979fd5162ce98f3
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

2267
Assets/_Recovery/0 (7).unity Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: faec880912ddc4b96bf0dbdbbfedf24e
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

BIN
Library/.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -81633,7 +81633,7 @@
"DisplayName": "Writing Assembly-CSharp.rsp",
"ActionType": "WriteFile",
"PayloadOffset": 3729201,
"PayloadLength": 42759,
"PayloadLength": 42761,
"PayloadDebugContentSnippet": "-target:library\n-out:\"Library/",
"Inputs": [],
"InputFlags": [],
@ -81649,7 +81649,7 @@
"Annotation": "WriteText Library/Bee/artifacts/900b0aE.dag/Assembly-CSharp.rsp2",
"DisplayName": "Writing Assembly-CSharp.rsp2",
"ActionType": "WriteFile",
"PayloadOffset": 3772046,
"PayloadOffset": 3772048,
"PayloadLength": 0,
"PayloadDebugContentSnippet": "",
"Inputs": [],
@ -82006,10 +82006,10 @@
"Assets/Scripts/Movements/Movement_Ground.cs",
"Assets/Scripts/Scenes/BaseScene.cs",
"Assets/Scripts/Scenes/GameScene.cs",
"Assets/Scripts/UI/Button.cs",
"Assets/Scripts/UI/Button_Action.cs",
"Assets/Scripts/UI/ExpBar.cs",
"Assets/Scripts/UI/Joystick.cs",
"Assets/Scripts/UI/UIButton.cs",
"Assets/Scripts/Utils/Define.cs",
"Assets/Scripts/Utils/Poolable.cs",
"Assets/Settings/InputActions.cs",
@ -82788,7 +82788,7 @@
"Annotation": "WriteText Library/Bee/artifacts/900b0aE.dag/Assembly-CSharp.dll.mvfrm.rsp",
"DisplayName": "Writing Assembly-CSharp.dll.mvfrm.rsp",
"ActionType": "WriteFile",
"PayloadOffset": 3772141,
"PayloadOffset": 3772143,
"PayloadLength": 14885,
"PayloadDebugContentSnippet": "Library/Bee/artifacts/mvdfrm/U",
"Inputs": [],

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -480,10 +480,10 @@
"Assets/Scripts/Movements/Movement_Ground.cs"
"Assets/Scripts/Scenes/BaseScene.cs"
"Assets/Scripts/Scenes/GameScene.cs"
"Assets/Scripts/UI/Button.cs"
"Assets/Scripts/UI/Button_Action.cs"
"Assets/Scripts/UI/ExpBar.cs"
"Assets/Scripts/UI/Joystick.cs"
"Assets/Scripts/UI/UIButton.cs"
"Assets/Scripts/Utils/Define.cs"
"Assets/Scripts/Utils/Poolable.cs"
"Assets/Settings/InputActions.cs"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,10 @@
{ "pid": 35942, "tid": -1, "ph": "M", "name": "process_name", "args": { "name": "netcorerun.dll" } },
{ "pid": 35942, "tid": -1, "ph": "M", "name": "process_sort_index", "args": { "sort_index": "-1" } },
{ "pid": 35942, "tid": 1, "ph": "M", "name": "thread_name", "args": { "name": "" } },
{ "pid": 35942, "tid": 1, "ts": 1760364527070035, "dur": 653776, "ph": "X", "name": "BuildProgram", "args": {} },
{ "pid": 35942, "tid": 1, "ts": 1760364527070968, "dur": 119602, "ph": "X", "name": "BuildProgramContextConstructor", "args": {} },
{ "pid": 35942, "tid": 1, "ts": 1760364527626846, "dur": 5602, "ph": "X", "name": "OutputData.Write", "args": {} },
{ "pid": 35942, "tid": 1, "ts": 1760364527632451, "dur": 91326, "ph": "X", "name": "Backend.Write", "args": {} },
{ "pid": 35942, "tid": 1, "ts": 1760364527633468, "dur": 61179, "ph": "X", "name": "JsonToString", "args": {} },
{ "pid": 35942, "tid": 1, "ts": 1760364527729655, "dur": 1057, "ph": "X", "name": "", "args": {} },
{ "pid": 35942, "tid": 1, "ts": 1760364527729351, "dur": 1530, "ph": "X", "name": "Write chrome-trace events", "args": {} },
{ "pid": 35942, "tid": 1, "ts": 1760400455243722, "dur": 427029, "ph": "X", "name": "BuildProgram", "args": {} },
{ "pid": 35942, "tid": 1, "ts": 1760400455244314, "dur": 86729, "ph": "X", "name": "BuildProgramContextConstructor", "args": {} },
{ "pid": 35942, "tid": 1, "ts": 1760400455612493, "dur": 2599, "ph": "X", "name": "OutputData.Write", "args": {} },
{ "pid": 35942, "tid": 1, "ts": 1760400455615095, "dur": 55649, "ph": "X", "name": "Backend.Write", "args": {} },
{ "pid": 35942, "tid": 1, "ts": 1760400455615788, "dur": 41144, "ph": "X", "name": "JsonToString", "args": {} },
{ "pid": 35942, "tid": 1, "ts": 1760400455674886, "dur": 716, "ph": "X", "name": "", "args": {} },
{ "pid": 35942, "tid": 1, "ts": 1760400455674666, "dur": 1046, "ph": "X", "name": "Write chrome-trace events", "args": {} },

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More