- Assets/_Game/ 하위로 게임 에셋 통합 - External/ 패키지 벤더별 분류 (Synty, Animations, UI) - 에셋 네이밍 컨벤션 확립 및 적용 (Data_Skill_, Data_SkillEffect_, Prefab_, Anim_, Model_, BT_ 등) - pre-commit hook으로 네이밍 컨벤션 자동 검사 추가 - RESTRUCTURE_CHECKLIST.md 작성 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
54 lines
1.5 KiB
C#
54 lines
1.5 KiB
C#
#if UNITY_EDITOR
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace Colosseum.UI.Editor
|
|
{
|
|
[CustomEditor(typeof(ConnectionUI))]
|
|
public class ConnectionUIEditor : UnityEditor.Editor
|
|
{
|
|
public override void OnInspectorGUI()
|
|
{
|
|
DrawDefaultInspector();
|
|
|
|
EditorGUILayout.Space(10);
|
|
EditorGUILayout.LabelField("Connection Controls", EditorStyles.boldLabel);
|
|
|
|
ConnectionUI connectionUI = (ConnectionUI)target;
|
|
|
|
EditorGUI.BeginDisabledGroup(!Application.isPlaying);
|
|
|
|
using (new EditorGUILayout.HorizontalScope())
|
|
{
|
|
if (GUILayout.Button("Start Host", GUILayout.Height(30)))
|
|
{
|
|
connectionUI.StartHost();
|
|
}
|
|
|
|
if (GUILayout.Button("Start Client", GUILayout.Height(30)))
|
|
{
|
|
connectionUI.StartClient();
|
|
}
|
|
|
|
if (GUILayout.Button("Start Server", GUILayout.Height(30)))
|
|
{
|
|
connectionUI.StartServer();
|
|
}
|
|
}
|
|
|
|
if (GUILayout.Button("Disconnect", GUILayout.Height(25)))
|
|
{
|
|
connectionUI.Disconnect();
|
|
}
|
|
|
|
EditorGUI.EndDisabledGroup();
|
|
|
|
if (!Application.isPlaying)
|
|
{
|
|
EditorGUILayout.HelpBox("Play Mode에서만 연결할 수 있습니다.", MessageType.Info);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|