feat(gameplay): 添加建筑系统和改进摄像机控制

- 移除人类士兵数据资产文件,重构为建筑放置系统
- 在CharacterData中添加productionInterval和buildingCost字段用于建筑生产
- 实现CameraFollow脚本的完整重写,支持键盘WASD拖动、鼠标拖动、触摸拖动
- 添加摄像机缩放功能,支持上下键和触摸双指缩放
- 更新Projecttile.cs以同时处理单位和建筑目标的伤害检测
- 修改SummonCardButton从法力值召唤改为金币建筑放置模式
- 在UnitBase.cs中更新攻击逻辑以支持对建筑造成伤害
- 升级WorldHealthBar以显示建筑生产进度和更好的缩放补偿
- 修复MainCharacterDebugMovement移除键盘移动输入冲突
- 更新包管理器中的codely.bridge版本从1.0.80到1.0.81
```
This commit is contained in:
huadexuan committed 2026-09-13 23:35:59 +08:00
1 parent fb56cd7ede
commit 769aea30f3
55 files changed
+9328 -90

No files matched your search

+139
View File
@@ -0,0 +1,139 @@
%YAML 1.1
%TAG !u! tag:yousandi.cn,2023:
--- !u!1001 &1576419828942378800
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 4137d04b576874ad5bfa5caa05c5d75f,
type: 3}
propertyPath: m_LocalPosition.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4137d04b576874ad5bfa5caa05c5d75f,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4137d04b576874ad5bfa5caa05c5d75f,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4137d04b576874ad5bfa5caa05c5d75f,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4137d04b576874ad5bfa5caa05c5d75f,
type: 3}
propertyPath: m_LocalRotation.x
value: -0.00000003774895
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4137d04b576874ad5bfa5caa05c5d75f,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4137d04b576874ad5bfa5caa05c5d75f,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4137d04b576874ad5bfa5caa05c5d75f,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4137d04b576874ad5bfa5caa05c5d75f,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4137d04b576874ad5bfa5caa05c5d75f,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 4137d04b576874ad5bfa5caa05c5d75f,
type: 3}
propertyPath: m_Name
value: "\u5175\u8425"
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents:
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 4137d04b576874ad5bfa5caa05c5d75f,
type: 3}
insertIndex: -1
addedObject: {fileID: 7297444463306436437}
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 4137d04b576874ad5bfa5caa05c5d75f,
type: 3}
insertIndex: -1
addedObject: {fileID: 7049005926872886096}
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 4137d04b576874ad5bfa5caa05c5d75f,
type: 3}
insertIndex: -1
addedObject: {fileID: 6535874508271334648}
m_SourcePrefab: {fileID: 100100000, guid: 4137d04b576874ad5bfa5caa05c5d75f, type: 3}
--- !u!1 &1811001936706742881 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: 4137d04b576874ad5bfa5caa05c5d75f,
type: 3}
m_PrefabInstance: {fileID: 1576419828942378800}
m_PrefabAsset: {fileID: 0}
--- !u!114 &7297444463306436437
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1811001936706742881}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9355c53f591d4459ea620fc8191efa17, type: 3}
m_Name:
m_EditorClassIdentifier:
maxHealth: 100
currentHealth: 100
maxEnergy: 100
currentEnergy: 0
heightOffset: 0.25
barWidth: 1.2
borderColor: {r: 0.03, g: 0.03, b: 0.03, a: 0.95}
deathEffectDuration: 1.1
deathEffectColor: {r: 0.55, g: 0.9, b: 1, a: 1}
--- !u!114 &7049005926872886096
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1811001936706742881}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0664b986337964243879f685b5c49aba, type: 3}
m_Name:
m_EditorClassIdentifier:
maxHealth: 500
--- !u!114 &6535874508271334648
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1811001936706742881}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 282625ec862664fd9851af4713c22826, type: 3}
m_Name:
m_EditorClassIdentifier:
characterData: {fileID: 0}
unitTag: Friend
spawnPoint: {fileID: 0}
progressBar: {fileID: 0}
characterIcon: {fileID: 0}