feat(MainCharacterCombat): 完善主角召唤系统逻辑 - 调整召唤动画超时时间从2.5秒到4秒 - 在开始召唤时立即停止角色移动,调用ClearTarget() - 将animator.SetTrigger改为animator.Play以确保动画正确播放 - 修改召唤位置查找逻辑,当找不到合适位置时在召唤师前方1.5米强制生成 - 更新边界检查逻辑,支持SummonerClickMovement的半场限制 - 添加idle动画播放确保状态正确切换 ```
221 lines
7.5 KiB
Plaintext
221 lines
7.5 KiB
Plaintext
%YAML 1.1
|
|
%TAG !u! tag:yousandi.cn,2023:
|
|
--- !u!1 &7776896532109503703
|
|
GameObject:
|
|
m_ObjectHideFlags: 0
|
|
m_CorrespondingSourceObject: {fileID: 0}
|
|
m_PrefabInstance: {fileID: 0}
|
|
m_PrefabAsset: {fileID: 0}
|
|
serializedVersion: 7
|
|
m_Component:
|
|
- component: {fileID: 286193082999517309}
|
|
m_Layer: 0
|
|
m_HasEditorInfo: 1
|
|
m_Name: attackPos
|
|
m_TagString: Untagged
|
|
m_Icon: {fileID: 0}
|
|
m_NavMeshLayer: 0
|
|
m_StaticEditorFlags: 0
|
|
m_IsActive: 1
|
|
--- !u!4 &286193082999517309
|
|
Transform:
|
|
m_ObjectHideFlags: 0
|
|
m_CorrespondingSourceObject: {fileID: 0}
|
|
m_PrefabInstance: {fileID: 0}
|
|
m_PrefabAsset: {fileID: 0}
|
|
m_GameObject: {fileID: 7776896532109503703}
|
|
serializedVersion: 2
|
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
m_LocalPosition: {x: -0.019, y: 0.283, z: 0.069}
|
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
m_ConstrainProportionsScale: 0
|
|
m_Children: []
|
|
m_Father: {fileID: 1444656758206389486}
|
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
--- !u!1001 &989067199113700134
|
|
PrefabInstance:
|
|
m_ObjectHideFlags: 0
|
|
serializedVersion: 2
|
|
m_Modification:
|
|
serializedVersion: 3
|
|
m_TransformParent: {fileID: 0}
|
|
m_Modifications:
|
|
- target: {fileID: -8679921383154817045, guid: 6b859b567d8ba4a7a87c03aa4b87c18c,
|
|
type: 3}
|
|
propertyPath: m_LocalPosition.x
|
|
value: -0.8
|
|
objectReference: {fileID: 0}
|
|
- target: {fileID: -8679921383154817045, guid: 6b859b567d8ba4a7a87c03aa4b87c18c,
|
|
type: 3}
|
|
propertyPath: m_LocalPosition.y
|
|
value: 0
|
|
objectReference: {fileID: 0}
|
|
- target: {fileID: -8679921383154817045, guid: 6b859b567d8ba4a7a87c03aa4b87c18c,
|
|
type: 3}
|
|
propertyPath: m_LocalPosition.z
|
|
value: 0.9
|
|
objectReference: {fileID: 0}
|
|
- target: {fileID: -8679921383154817045, guid: 6b859b567d8ba4a7a87c03aa4b87c18c,
|
|
type: 3}
|
|
propertyPath: m_LocalRotation.w
|
|
value: 1
|
|
objectReference: {fileID: 0}
|
|
- target: {fileID: -8679921383154817045, guid: 6b859b567d8ba4a7a87c03aa4b87c18c,
|
|
type: 3}
|
|
propertyPath: m_LocalRotation.x
|
|
value: 0
|
|
objectReference: {fileID: 0}
|
|
- target: {fileID: -8679921383154817045, guid: 6b859b567d8ba4a7a87c03aa4b87c18c,
|
|
type: 3}
|
|
propertyPath: m_LocalRotation.y
|
|
value: 0
|
|
objectReference: {fileID: 0}
|
|
- target: {fileID: -8679921383154817045, guid: 6b859b567d8ba4a7a87c03aa4b87c18c,
|
|
type: 3}
|
|
propertyPath: m_LocalRotation.z
|
|
value: 0
|
|
objectReference: {fileID: 0}
|
|
- target: {fileID: -8679921383154817045, guid: 6b859b567d8ba4a7a87c03aa4b87c18c,
|
|
type: 3}
|
|
propertyPath: m_LocalEulerAnglesHint.x
|
|
value: 0
|
|
objectReference: {fileID: 0}
|
|
- target: {fileID: -8679921383154817045, guid: 6b859b567d8ba4a7a87c03aa4b87c18c,
|
|
type: 3}
|
|
propertyPath: m_LocalEulerAnglesHint.y
|
|
value: 0
|
|
objectReference: {fileID: 0}
|
|
- target: {fileID: -8679921383154817045, guid: 6b859b567d8ba4a7a87c03aa4b87c18c,
|
|
type: 3}
|
|
propertyPath: m_LocalEulerAnglesHint.z
|
|
value: 0
|
|
objectReference: {fileID: 0}
|
|
- target: {fileID: 919132149155446097, guid: 6b859b567d8ba4a7a87c03aa4b87c18c,
|
|
type: 3}
|
|
propertyPath: m_Name
|
|
value: "\u53EC\u5524\u5E08\u4E3B\u89D2"
|
|
objectReference: {fileID: 0}
|
|
- target: {fileID: 919132149155446097, guid: 6b859b567d8ba4a7a87c03aa4b87c18c,
|
|
type: 3}
|
|
propertyPath: m_TagString
|
|
value: Player
|
|
objectReference: {fileID: 0}
|
|
m_RemovedComponents: []
|
|
m_RemovedGameObjects: []
|
|
m_AddedGameObjects:
|
|
- targetCorrespondingSourceObject: {fileID: 1852576806548013000, guid: 6b859b567d8ba4a7a87c03aa4b87c18c,
|
|
type: 3}
|
|
insertIndex: -1
|
|
addedObject: {fileID: 286193082999517309}
|
|
m_AddedComponents:
|
|
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 6b859b567d8ba4a7a87c03aa4b87c18c,
|
|
type: 3}
|
|
insertIndex: -1
|
|
addedObject: {fileID: 5899466420499838505}
|
|
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 6b859b567d8ba4a7a87c03aa4b87c18c,
|
|
type: 3}
|
|
insertIndex: -1
|
|
addedObject: {fileID: 8874205787751956438}
|
|
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 6b859b567d8ba4a7a87c03aa4b87c18c,
|
|
type: 3}
|
|
insertIndex: -1
|
|
addedObject: {fileID: 6516315820976732023}
|
|
m_SourcePrefab: {fileID: 100100000, guid: 6b859b567d8ba4a7a87c03aa4b87c18c, type: 3}
|
|
--- !u!1 &106035464483675767 stripped
|
|
GameObject:
|
|
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: 6b859b567d8ba4a7a87c03aa4b87c18c,
|
|
type: 3}
|
|
m_PrefabInstance: {fileID: 989067199113700134}
|
|
m_PrefabAsset: {fileID: 0}
|
|
--- !u!95 &5899466420499838505
|
|
Animator:
|
|
serializedVersion: 6
|
|
m_ObjectHideFlags: 0
|
|
m_CorrespondingSourceObject: {fileID: 0}
|
|
m_PrefabInstance: {fileID: 0}
|
|
m_PrefabAsset: {fileID: 0}
|
|
m_GameObject: {fileID: 106035464483675767}
|
|
m_Enabled: 1
|
|
m_Avatar: {fileID: 9000000, guid: 6b859b567d8ba4a7a87c03aa4b87c18c, type: 3}
|
|
m_Controller: {fileID: 22100000, guid: ca1bd6051433541cfa22bac24d4a1103, type: 2}
|
|
m_CullingMode: 0
|
|
m_UpdateMode: 0
|
|
m_UpdateFrequencyMode: 0
|
|
m_UpdateFrequency: 0
|
|
m_ApplyRootMotion: 0
|
|
m_LinearVelocityBlending: 0
|
|
m_StabilizeFeet: 0
|
|
m_WarningMessage:
|
|
m_HasTransformHierarchy: 1
|
|
m_AllowConstantClipSamplingOptimization: 1
|
|
m_KeepAnimatorStateOnDisable: 0
|
|
m_WriteDefaultValuesOnDisable: 0
|
|
--- !u!114 &8874205787751956438
|
|
MonoBehaviour:
|
|
m_ObjectHideFlags: 0
|
|
m_CorrespondingSourceObject: {fileID: 0}
|
|
m_PrefabInstance: {fileID: 0}
|
|
m_PrefabAsset: {fileID: 0}
|
|
m_GameObject: {fileID: 106035464483675767}
|
|
m_Enabled: 1
|
|
m_EditorHideFlags: 0
|
|
m_Script: {fileID: 11500000, guid: e370e6a2ddc454f8c8837028614c86d7, type: 3}
|
|
m_Name:
|
|
m_EditorClassIdentifier:
|
|
attackRange: 8
|
|
detectRange: 10
|
|
attackPower: 50
|
|
attackInterval: 2
|
|
modelFacingOffset: 90
|
|
useRootMotion: 1
|
|
projectilePrefab: {fileID: 6786356955586915818, guid: e491f7d23e3cd4069823405c487be19f,
|
|
type: 3}
|
|
attackPos: {fileID: 286193082999517309}
|
|
summonableCharacters:
|
|
- {fileID: 11400000, guid: 6f138ec1db2b741aab394542890c7400, type: 2}
|
|
- {fileID: 11400000, guid: 5a726a224ff5b46718f8f4fc75299bca, type: 2}
|
|
- {fileID: 11400000, guid: 51d1dacb02fc441fa9bbea4443e50967, type: 2}
|
|
- {fileID: 11400000, guid: 6a793da90a16b4d0c97ab9c3af691849, type: 2}
|
|
- {fileID: 11400000, guid: 49f7e9a7946834177a8dce1ef1c5edb9, type: 2}
|
|
summonDistance: 1.5
|
|
summonSideOffset: 0.8
|
|
summonSearchStep: 0.8
|
|
summonSearchCount: 5
|
|
summonDepthSearchStep: 1
|
|
summonDepthSearchCount: 2
|
|
summonAnimationTimeout: 4
|
|
projectileSpeed: 12
|
|
projectileLifetime: 5
|
|
--- !u!114 &6516315820976732023
|
|
MonoBehaviour:
|
|
m_ObjectHideFlags: 0
|
|
m_CorrespondingSourceObject: {fileID: 0}
|
|
m_PrefabInstance: {fileID: 0}
|
|
m_PrefabAsset: {fileID: 0}
|
|
m_GameObject: {fileID: 106035464483675767}
|
|
m_Enabled: 1
|
|
m_EditorHideFlags: 0
|
|
m_Script: {fileID: 11500000, guid: 9355c53f591d4459ea620fc8191efa17, type: 3}
|
|
m_Name:
|
|
m_EditorClassIdentifier:
|
|
maxHealth: 300
|
|
currentHealth: 300
|
|
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}
|
|
showDamageNumbers: 1
|
|
damageNumberDuration: 0.8
|
|
damageNumberRiseHeight: 1.2
|
|
damageNumberSpawnHeight: 1.5
|
|
damageNumberSize: 0.09
|
|
--- !u!4 &1444656758206389486 stripped
|
|
Transform:
|
|
m_CorrespondingSourceObject: {fileID: 1852576806548013000, guid: 6b859b567d8ba4a7a87c03aa4b87c18c,
|
|
type: 3}
|
|
m_PrefabInstance: {fileID: 989067199113700134}
|
|
m_PrefabAsset: {fileID: 0}
|