From 2f624f621c7f6e0f377f6e68e4ff5b070697528d Mon Sep 17 00:00:00 2001 From: dal4segno Date: Mon, 16 Feb 2026 21:19:11 +0900 Subject: [PATCH] =?UTF-8?q?=EC=94=AC=EC=97=90=20=EB=B0=B0=EC=B9=98?= =?UTF-8?q?=EB=90=9C=20=EC=BD=94=EC=96=B4=EC=9D=98=20=EC=BB=AC=EB=9D=BC?= =?UTF-8?q?=EC=9D=B4=EB=8D=94=20=EC=A2=8C=ED=91=9C=EA=B0=80=20=EC=9D=B4?= =?UTF-8?q?=EC=83=81=ED=95=9C=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Interact가 불가능했음. --- Assets/Prefabs/Core.prefab | 21 +---------- Assets/Scenes/GameMain.unity | 69 ++++++++++++++---------------------- Assets/Scripts/Core.cs | 2 +- 3 files changed, 28 insertions(+), 64 deletions(-) diff --git a/Assets/Prefabs/Core.prefab b/Assets/Prefabs/Core.prefab index 76060dc..1dcca18 100644 --- a/Assets/Prefabs/Core.prefab +++ b/Assets/Prefabs/Core.prefab @@ -14,7 +14,6 @@ GameObject: - component: {fileID: 2964705630284685173} - component: {fileID: 2236804103334722056} - component: {fileID: -7963177287827765112} - - component: {fileID: 7481534291960023794} m_Layer: 7 m_Name: Core m_TagString: Untagged @@ -50,7 +49,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: d5a57f767e5e46a458fc5d3c628d0cbb, type: 3} m_Name: m_EditorClassIdentifier: Unity.Netcode.Runtime::Unity.Netcode.NetworkObject - GlobalObjectIdHash: 3998537868 + GlobalObjectIdHash: 615747208 InScenePlacedSourceGlobalObjectIdHash: 615747208 DeferredDespawnTick: 0 Ownership: 1 @@ -161,24 +160,6 @@ MonoBehaviour: minHeightForDistantVisibility: 3 useExploredMaterial: 0 exploredMaterial: {fileID: 0} ---- !u!114 &7481534291960023794 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8124290768227340041} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 9674643eb301f6c45875564495e1bb66, type: 3} - m_Name: - m_EditorClassIdentifier: Assembly-CSharp::Northbound.InteractableHoverUI - iconImage: {fileID: 2030466806768584547, guid: 74efcc25fc6310e4f9fbea1c636de6dd, type: 3} - textText: {fileID: 0} - uiContainer: {fileID: 1681682409161624864, guid: 74efcc25fc6310e4f9fbea1c636de6dd, type: 3} - heightOffset: 2.5 - fadeSpeed: 5 - scaleMultiplier: 0.01 --- !u!1001 &1237105051606736037 PrefabInstance: m_ObjectHideFlags: 0 diff --git a/Assets/Scenes/GameMain.unity b/Assets/Scenes/GameMain.unity index 993e374..bd96e92 100644 --- a/Assets/Scenes/GameMain.unity +++ b/Assets/Scenes/GameMain.unity @@ -1582,7 +1582,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 2ed03291507256a47913eae4dee429c7, type: 3} m_Name: m_EditorClassIdentifier: Assembly-CSharp::Northbound.CoreResourceManager - mainCore: {fileID: 8940572951313384066} + mainCore: {fileID: 8940572951313384076} --- !u!4 &955933985 Transform: m_ObjectHideFlags: 0 @@ -3465,42 +3465,14 @@ PrefabInstance: serializedVersion: 3 m_TransformParent: {fileID: 576429380} m_Modifications: - - target: {fileID: -7963177287827765112, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3} - propertyPath: updateInterval - value: 0.2 + - target: {fileID: 2236804103334722056, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3} + propertyPath: m_Center.y + value: 4 objectReference: {fileID: 0} - - target: {fileID: 1287070985890992582, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3} - propertyPath: equipmentData.socketName + - target: {fileID: 2964705630284685173, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3} + propertyPath: buildingData value: objectReference: {fileID: 0} - - target: {fileID: 1287070985890992582, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3} - propertyPath: interactionAnimationTrigger - value: - objectReference: {fileID: 0} - - target: {fileID: 1630774755871243086, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3} - propertyPath: m_LocalScale.x - value: 4 - objectReference: {fileID: 0} - - target: {fileID: 1630774755871243086, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3} - propertyPath: m_LocalScale.y - value: 4 - objectReference: {fileID: 0} - - target: {fileID: 1630774755871243086, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3} - propertyPath: m_LocalScale.z - value: 4 - objectReference: {fileID: 0} - - target: {fileID: 2236804103334722056, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3} - propertyPath: m_Size.x - value: 9 - objectReference: {fileID: 0} - - target: {fileID: 2236804103334722056, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3} - propertyPath: m_Size.y - value: 9 - objectReference: {fileID: 0} - - target: {fileID: 2236804103334722056, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3} - propertyPath: m_Size.z - value: 9 - objectReference: {fileID: 0} - target: {fileID: 5173262576415873253, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3} propertyPath: GlobalObjectIdHash value: 3998537868 @@ -3549,8 +3521,7 @@ PrefabInstance: propertyPath: m_Name value: Core objectReference: {fileID: 0} - m_RemovedComponents: - - {fileID: 7481534291960023794, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3} + m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] m_AddedComponents: [] @@ -3565,8 +3536,20 @@ PrefabInstance: m_Modifications: - target: {fileID: -7869551286978933574, guid: f395fcc064a3a834ba957327f1387c19, type: 3} propertyPath: rechargeAmount - value: 3 + value: 1 objectReference: {fileID: 0} + - target: {fileID: -7869551286978933574, guid: f395fcc064a3a834ba957327f1387c19, type: 3} + propertyPath: rechargeInterval + value: 2 + objectReference: {fileID: 0} + - target: {fileID: -7869551286978933574, guid: f395fcc064a3a834ba957327f1387c19, type: 3} + propertyPath: resourcesPerGathering + value: 5 + objectReference: {fileID: 0} + - target: {fileID: -7869551286978933574, guid: f395fcc064a3a834ba957327f1387c19, type: 3} + propertyPath: equipmentData.equipmentPrefab + value: + objectReference: {fileID: 8294708185945415980, guid: eda89876457aa6143b1bef3330e8f7fb, type: 3} - target: {fileID: 3247786716306397435, guid: f395fcc064a3a834ba957327f1387c19, type: 3} propertyPath: m_LocalPosition.x value: -30 @@ -3620,7 +3603,12 @@ PrefabInstance: m_AddedGameObjects: [] m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: f395fcc064a3a834ba957327f1387c19, type: 3} ---- !u!114 &8940572951313384066 stripped +--- !u!4 &8940572951313384071 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 8064559726283331702, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3} + m_PrefabInstance: {fileID: 4786254629656932894} + m_PrefabAsset: {fileID: 0} +--- !u!114 &8940572951313384076 stripped MonoBehaviour: m_CorrespondingSourceObject: {fileID: 1287070985890992582, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3} m_PrefabInstance: {fileID: 4786254629656932894} @@ -3631,11 +3619,6 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 7c94274e2af2c8d4f827fe52b26c4410, type: 3} m_Name: m_EditorClassIdentifier: Assembly-CSharp::Northbound.Core ---- !u!4 &8940572951313384071 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 8064559726283331702, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3} - m_PrefabInstance: {fileID: 4786254629656932894} - m_PrefabAsset: {fileID: 0} --- !u!1660057539 &9223372036854775807 SceneRoots: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/Core.cs b/Assets/Scripts/Core.cs index 7ebf33c..988abe1 100644 --- a/Assets/Scripts/Core.cs +++ b/Assets/Scripts/Core.cs @@ -194,7 +194,7 @@ namespace Northbound return false; // 플레이어가 자원을 가지고 있는지 확인 - if (NetworkManager.Singleton != null && + if (NetworkManager.Singleton != null && NetworkManager.Singleton.ConnectedClients.TryGetValue(playerId, out var client)) { if (client.PlayerObject != null)