Attacks on collisions

This commit is contained in:
2025-08-07 02:02:46 +02:00
parent 4e128b7641
commit 9a70b0bd2a
5 changed files with 118 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ GameObject:
- component: {fileID: 4260072969707999758}
- component: {fileID: 8136388527997030937}
- component: {fileID: 8002523264253901019}
- component: {fileID: 5415715946912615516}
- component: {fileID: 146755941370531150}
m_Layer: 0
m_Name: Blob
m_TagString: Enemy
@@ -104,6 +106,43 @@ MonoBehaviour:
_maxHealth: 100
_currentHealth: 20
_healthText: {fileID: 0}
--- !u!114 &5415715946912615516
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2103289545128957355}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 333830e3ba10f2942b70a753c4c281de, type: 3}
m_Name:
m_EditorClassIdentifier:
attackRange: 5
attackRate: 2
attackDamage: 10
attackAngle: 45
--- !u!65 &146755941370531150
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2103289545128957355}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 1
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 4.4725122, y: 2.472512, z: 4.2375846}
m_Center: {x: 0, y: 0.6187928, z: 0}
--- !u!1 &2485118932734020551
GameObject:
m_ObjectHideFlags: 0