feat: added the early parts of a basic attack system for enemies

This commit is contained in:
Chris
2025-11-23 14:10:43 -05:00
parent 8b9d2c21ce
commit ed4298b1da
9 changed files with 201 additions and 26 deletions

View File

@@ -3372,7 +3372,6 @@ MonoBehaviour:
enemyCount: {x: 0, y: 0}
enemy: {fileID: 9098724353270996650, guid: 7dca717b905799e4cb7f64180d31be25, type: 3}
enemies: []
unitsInCombat: 0
--- !u!4 &797489998
Transform:
m_ObjectHideFlags: 0
@@ -4582,7 +4581,6 @@ MonoBehaviour:
enemyCount: {x: 0, y: 0}
enemy: {fileID: 9098724353270996650, guid: 7dca717b905799e4cb7f64180d31be25, type: 3}
enemies: []
unitsInCombat: 0
--- !u!4 &1048541691
Transform:
m_ObjectHideFlags: 0
@@ -5479,7 +5477,7 @@ MonoBehaviour:
Layer: 0
OriginatingState: 545524378
DestinationState: -1809674494
TransitionDuration: 0.25
TransitionDuration: 0
TriggerNameHash: 1080829965
TransitionIndex: 1
m_Animator: {fileID: 4518178797721885225}
@@ -6825,6 +6823,10 @@ PrefabInstance:
value: '{"_variables":{"target":{"_propertyPath":"Reset.Units.EnemyCombat.UnitTarget","_name":"target","_id":"6661b63d-1d1f-4620-945e-7769012891f2","$type":"NodeCanvas.Framework.Variable`1[[UnityEngine.GameObject,
UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]"}}}'
objectReference: {fileID: 0}
- target: {fileID: 6881462958115636691, guid: 7dca717b905799e4cb7f64180d31be25, type: 3}
propertyPath: _objectReferences.Array.size
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6881462958115636691, guid: 7dca717b905799e4cb7f64180d31be25, type: 3}
propertyPath: _serializedVariables.Array.size
value: 1
@@ -6834,6 +6836,10 @@ PrefabInstance:
value: '{"_propertyPath":"Reset.Units.EnemyCombat.UnitTarget","_name":"target","_id":"6661b63d-1d1f-4620-945e-7769012891f2","$type":"NodeCanvas.Framework.Variable`1[[UnityEngine.GameObject,
UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]"}'
objectReference: {fileID: 0}
- target: {fileID: 6881462958115636691, guid: 7dca717b905799e4cb7f64180d31be25, type: 3}
propertyPath: _serializedVariables.Array.data[0]._references.Array.size
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6929190659609457359, guid: 7dca717b905799e4cb7f64180d31be25, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 57.05409
@@ -6894,6 +6900,10 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 4.340281
objectReference: {fileID: 0}
- target: {fileID: 8206397622550667234, guid: 7dca717b905799e4cb7f64180d31be25, type: 3}
propertyPath: testModelAnimator
value:
objectReference: {fileID: 0}
- target: {fileID: 8352365412773029781, guid: 7dca717b905799e4cb7f64180d31be25, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -11.991471
@@ -8570,7 +8580,6 @@ MonoBehaviour:
enemyCount: {x: 0, y: 0}
enemy: {fileID: 9098724353270996650, guid: 7dca717b905799e4cb7f64180d31be25, type: 3}
enemies: []
unitsInCombat: 0
--- !u!4 &1895301036
Transform:
m_ObjectHideFlags: 0
@@ -9682,6 +9691,34 @@ PrefabInstance:
propertyPath: data.deacceleration.defaultValue
value: 20
objectReference: {fileID: 0}
- target: {fileID: 6881462958115636691, guid: 7dca717b905799e4cb7f64180d31be25, type: 3}
propertyPath: _serializedBlackboard
value: '{"_variables":{"bodyAnimator":{"_name":"bodyAnimator","_id":"596577fd-def2-446f-855c-d366b7f6cc67","$type":"NodeCanvas.Framework.Variable`1[[UnityEngine.Animator,
UnityEngine.AnimationModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]"},"modelAnimator":{"_name":"modelAnimator","_id":"5c66985d-3dce-49ff-a5eb-fb807771b577","$type":"NodeCanvas.Framework.Variable`1[[UnityEngine.Animator,
UnityEngine.AnimationModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]"}}}'
objectReference: {fileID: 0}
- target: {fileID: 6881462958115636691, guid: 7dca717b905799e4cb7f64180d31be25, type: 3}
propertyPath: _objectReferences.Array.size
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6881462958115636691, guid: 7dca717b905799e4cb7f64180d31be25, type: 3}
propertyPath: _serializedVariables.Array.data[0]._json
value: '{"_name":"bodyAnimator","_id":"596577fd-def2-446f-855c-d366b7f6cc67","$type":"NodeCanvas.Framework.Variable`1[[UnityEngine.Animator,
UnityEngine.AnimationModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]"}'
objectReference: {fileID: 0}
- target: {fileID: 6881462958115636691, guid: 7dca717b905799e4cb7f64180d31be25, type: 3}
propertyPath: _serializedVariables.Array.data[1]._json
value: '{"_name":"modelAnimator","_id":"5c66985d-3dce-49ff-a5eb-fb807771b577","$type":"NodeCanvas.Framework.Variable`1[[UnityEngine.Animator,
UnityEngine.AnimationModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]"}'
objectReference: {fileID: 0}
- target: {fileID: 6881462958115636691, guid: 7dca717b905799e4cb7f64180d31be25, type: 3}
propertyPath: _serializedVariables.Array.data[0]._references.Array.size
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6881462958115636691, guid: 7dca717b905799e4cb7f64180d31be25, type: 3}
propertyPath: _serializedVariables.Array.data[1]._references.Array.size
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8206397622550667234, guid: 7dca717b905799e4cb7f64180d31be25, type: 3}
propertyPath: testModelAnimator
value: