건설 인터랙션 관련 버그 수정 및 건설 데이터 구조 개선

건설 인터랙션 시 움직이지 못하는 문제 수정
2개로 분리되어 있던 타워 데이터를 하나로 통합
 - 대신 타워가 아닌 건물도 공격력 등을 정의할 수 있음
This commit is contained in:
2026-02-01 16:09:57 +09:00
parent 7927dab72f
commit 4200288fae
24 changed files with 235 additions and 337 deletions

View File

@@ -46,7 +46,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d5a57f767e5e46a458fc5d3c628d0cbb, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.Netcode.Runtime::Unity.Netcode.NetworkObject
GlobalObjectIdHash: 1879467101
GlobalObjectIdHash: 4292538740
InScenePlacedSourceGlobalObjectIdHash: 4292538740
DeferredDespawnTick: 0
Ownership: 1
@@ -75,6 +75,15 @@ MonoBehaviour:
buildingData: {fileID: 11400000, guid: 23c12a82ea534b34299700b86fffd524, type: 2}
gridPosition: {x: 0, y: 0, z: 0}
rotation: 0
constructionAnimationTrigger: Mining
constructionEquipment:
socketName: handslot.r
equipmentPrefab: {fileID: 919132149155446097, guid: 804d477fc7f114c498aa6f95452be893, type: 3}
attachOnStart: 1
detachOnEnd: 1
keepEquipped: 0
attachDelay: 0
detachDelay: 0
foundationVisual: {fileID: 2851644658348875061}
progressBarPrefab: {fileID: 0}
--- !u!1001 &3121692064363536484

View File

@@ -195,7 +195,6 @@ GameObject:
- component: {fileID: 100877884298911200}
- component: {fileID: 8485093670801034058}
- component: {fileID: 7262612124217315611}
- component: {fileID: 3089566480349729}
m_Layer: 0
m_Name: Tower1
m_TagString: Untagged
@@ -327,16 +326,3 @@ MonoBehaviour:
minHeightForDistantVisibility: 3
useExploredMaterial: 0
exploredMaterial: {fileID: 0}
--- !u!114 &3089566480349729
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8512676738329978770}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 56c4536effc49fe47af593bf9d17e979, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Northbound.TowerDataComponent
towerData: {fileID: 11400000, guid: 3e2e145df85a3ee4eb615f87efba4554, type: 2}

View File

@@ -14,7 +14,6 @@ GameObject:
- component: {fileID: 2615519446934682856}
- component: {fileID: 3203720634638459019}
- component: {fileID: 3906797260079127802}
- component: {fileID: 3692219876976097854}
m_Layer: 0
m_Name: Tower2
m_TagString: Untagged
@@ -82,8 +81,8 @@ BoxCollider:
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 2, y: 1, z: 2}
m_Center: {x: 0, y: 0.5, z: 0}
m_Size: {x: 4, y: 2, z: 3}
m_Center: {x: 0, y: 1, z: 0}
--- !u!208 &2615519446934682856
NavMeshObstacle:
m_ObjectHideFlags: 0
@@ -94,11 +93,11 @@ NavMeshObstacle:
m_Enabled: 1
serializedVersion: 3
m_Shape: 1
m_Extents: {x: 1, y: 0.5, z: 1}
m_Extents: {x: 2, y: 1, z: 1.5}
m_MoveThreshold: 0.1
m_Carve: 0
m_CarveOnlyStationary: 1
m_Center: {x: 0, y: 0.5, z: 0}
m_Center: {x: 0, y: 1, z: 0}
m_TimeToStationary: 0.5
--- !u!114 &3203720634638459019
MonoBehaviour:
@@ -146,19 +145,6 @@ MonoBehaviour:
minHeightForDistantVisibility: 3
useExploredMaterial: 0
exploredMaterial: {fileID: 0}
--- !u!114 &3692219876976097854
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3671057791414486316}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 56c4536effc49fe47af593bf9d17e979, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Northbound.TowerDataComponent
towerData: {fileID: 11400000, guid: 03a521eb1160745439ba2d0efeb12f3c, type: 2}
--- !u!1 &8947776510381915047
GameObject:
m_ObjectHideFlags: 0
@@ -187,7 +173,7 @@ Transform:
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 2, y: 1, z: 2}
m_LocalScale: {x: 4, y: 2, z: 3}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1657799771882240}