불필요 코드 제거
This commit is contained in:
@@ -2633,50 +2633,6 @@ RectTransform:
|
|||||||
m_CorrespondingSourceObject: {fileID: 7903913507570427698, guid: b0f606a28456e384ba973ec4b18be0b8, type: 3}
|
m_CorrespondingSourceObject: {fileID: 7903913507570427698, guid: b0f606a28456e384ba973ec4b18be0b8, type: 3}
|
||||||
m_PrefabInstance: {fileID: 7508193496350277438}
|
m_PrefabInstance: {fileID: 7508193496350277438}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!1 &931237680
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 931237682}
|
|
||||||
- component: {fileID: 931237681}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: GameObject
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!114 &931237681
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 931237680}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 86d8ea1a81790154fa1c1c2be6398b6a, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
--- !u!4 &931237682
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 931237680}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: 704.9204, y: 770.36145, z: -1.7147999}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!1001 &982431036
|
--- !u!1001 &982431036
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -3044,7 +3000,6 @@ GameObject:
|
|||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 1093055756}
|
- component: {fileID: 1093055756}
|
||||||
- component: {fileID: 1093055757}
|
- component: {fileID: 1093055757}
|
||||||
- component: {fileID: 1093055758}
|
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: System
|
m_Name: System
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@@ -3076,6 +3031,7 @@ Transform:
|
|||||||
- {fileID: 294055731}
|
- {fileID: 294055731}
|
||||||
- {fileID: 349372257}
|
- {fileID: 349372257}
|
||||||
- {fileID: 1155210}
|
- {fileID: 1155210}
|
||||||
|
- {fileID: 1846769877}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!114 &1093055757
|
--- !u!114 &1093055757
|
||||||
@@ -3090,18 +3046,6 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 2778cc56cc78c8a46846112e3aad69d2, type: 3}
|
m_Script: {fileID: 11500000, guid: 2778cc56cc78c8a46846112e3aad69d2, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
--- !u!114 &1093055758
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1093055755}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 12899bf44d0ad334fac9db78807dca00, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
--- !u!1 &1149817088
|
--- !u!1 &1149817088
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -7707,6 +7651,50 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: cd7d21f7ac364344c8c3fd1e261acc0e, type: 3}
|
m_Script: {fileID: 11500000, guid: cd7d21f7ac364344c8c3fd1e261acc0e, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!1 &1846769876
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1846769877}
|
||||||
|
- component: {fileID: 1846769878}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: StudioService
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &1846769877
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1846769876}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 1093055756}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &1846769878
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1846769876}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 12899bf44d0ad334fac9db78807dca00, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
--- !u!224 &1847741281 stripped
|
--- !u!224 &1847741281 stripped
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_CorrespondingSourceObject: {fileID: 3409130499235709296, guid: 1c31c1f054f4a624aabe7579c0e241a7, type: 3}
|
m_CorrespondingSourceObject: {fileID: 3409130499235709296, guid: 1c31c1f054f4a624aabe7579c0e241a7, type: 3}
|
||||||
@@ -12152,4 +12140,3 @@ SceneRoots:
|
|||||||
- {fileID: 216528118}
|
- {fileID: 216528118}
|
||||||
- {fileID: 481136644}
|
- {fileID: 481136644}
|
||||||
- {fileID: 1833346089}
|
- {fileID: 1833346089}
|
||||||
- {fileID: 931237682}
|
|
||||||
|
|||||||
@@ -57,41 +57,17 @@ namespace Studio
|
|||||||
public event Action<string, StudioEntityWithState<object>> onAPIDataLoaded;
|
public event Action<string, StudioEntityWithState<object>> onAPIDataLoaded;
|
||||||
public event Action<string, Dictionary<string, Dictionary<string, string>>, TimeSpan> onMQTTDataLoaded;
|
public event Action<string, Dictionary<string, Dictionary<string, string>>, TimeSpan> onMQTTDataLoaded;
|
||||||
|
|
||||||
bool isMQTTConnected;
|
|
||||||
|
|
||||||
//private string
|
|
||||||
private StudioService(StudioRepoistory repository)
|
|
||||||
{
|
|
||||||
this.repository = repository;
|
|
||||||
listenerIdMap = new Dictionary<string, Dictionary<string, EventHandler<StudioServiceTypeEventArgs>>>();
|
|
||||||
|
|
||||||
repository.OnTopicList += OnTopicList;
|
|
||||||
// repository.OnDetectedError += OnDetectedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
Constants.MQTTDomain = "220.90.135.190";
|
Constants.MQTTDomain = "220.90.135.190";
|
||||||
Constants.APIDomain = "220.90.135.190";
|
|
||||||
Constants.APIPort = 23000;
|
|
||||||
Constants.MQTTPort = 8088;
|
Constants.MQTTPort = 8088;
|
||||||
|
//Constants.APIDomain = "220.90.135.190";
|
||||||
|
//Constants.APIPort = 23000;
|
||||||
ConnectMQTT();
|
ConnectMQTT();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ConnectMQTT()
|
public void ConnectMQTT()
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
if (isMQTTConnected)
|
|
||||||
return;
|
|
||||||
|
|
||||||
this.repository = new StudioRepoistory();
|
|
||||||
listenerIdMap = new Dictionary<string, Dictionary<string, EventHandler<StudioServiceTypeEventArgs>>>();
|
|
||||||
|
|
||||||
repository.OnTopicList += OnTopicList;
|
|
||||||
|
|
||||||
repository.MQTTConnect();
|
|
||||||
isMQTTConnected = true;
|
|
||||||
*/
|
|
||||||
this.repository = new StudioRepoistory();
|
this.repository = new StudioRepoistory();
|
||||||
|
|
||||||
// ✅ 명시적으로 필요한 Dictionary들 초기화
|
// ✅ 명시적으로 필요한 Dictionary들 초기화
|
||||||
@@ -103,7 +79,6 @@ namespace Studio
|
|||||||
|
|
||||||
repository.OnTopicList += OnTopicList;
|
repository.OnTopicList += OnTopicList;
|
||||||
repository.MQTTConnect();
|
repository.MQTTConnect();
|
||||||
isMQTTConnected = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SubscribeMQTT(string topic)
|
public void SubscribeMQTT(string topic)
|
||||||
|
|||||||
@@ -12,12 +12,10 @@ namespace Studio
|
|||||||
private int aa;
|
private int aa;
|
||||||
void Awake()
|
void Awake()
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
Constants.MQTTDomain = "220.90.135.190";
|
Constants.MQTTDomain = "220.90.135.190";
|
||||||
Constants.APIDomain = "220.90.135.190";
|
Constants.APIDomain = "220.90.135.190";
|
||||||
Constants.APIPort = 23000;
|
Constants.APIPort = 23000;
|
||||||
Constants.MQTTPort = 8088;
|
Constants.MQTTPort = 8088;
|
||||||
*/
|
|
||||||
StudioService.instance.ConnectMQTT();
|
StudioService.instance.ConnectMQTT();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user