Fixed problem with attacks on player and navmesh (will need some Quality of life improvements in the future)
This commit is contained in:
2025-09-04 21:03:43 +02:00
parent c75af0fe39
commit 649603e232
5 changed files with 303 additions and 108 deletions

View File

@@ -79,8 +79,11 @@ MonoBehaviour:
agent: {fileID: -7480623267348950463}
player: {fileID: 7001416999833331379, guid: f0df263e5be65a041848d5a8bab85af1, type: 3}
updatePathInterval: 0.5
attackRange: 2
attackCooldown: 1
roomCheckInterval: 2
attackRange: 3
sightRange: 50
patrolRange: 5
enemyAttack: {fileID: 5415715946912615516}
animator: {fileID: 0}
--- !u!114 &8002523264253901019
MonoBehaviour:
@@ -109,10 +112,13 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 333830e3ba10f2942b70a753c4c281de, type: 3}
m_Name:
m_EditorClassIdentifier:
attackRange: 5
attackRange: 3
attackRate: 2
attackDamage: 10
attackAngle: 45
player: {fileID: 7001416999833331379, guid: f0df263e5be65a041848d5a8bab85af1, type: 3}
animator: {fileID: 0}
agent: {fileID: -7480623267348950463}
--- !u!65 &146755941370531150
BoxCollider:
m_ObjectHideFlags: 0
@@ -128,11 +134,11 @@ BoxCollider:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 1
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 4.4725122, y: 2.472512, z: 4.2375846}
m_Size: {x: 2, y: 1, z: 2}
m_Center: {x: 0, y: 0.6187928, z: 0}
--- !u!195 &-7480623267348950463
NavMeshAgent: