added headshots and enemy's shooting
This commit is contained in:
10
Assets/Scripts/EnemyHeadHitbox.cs
Normal file
10
Assets/Scripts/EnemyHeadHitbox.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
/// Attach this to an enemy's head GameObject.
|
||||
/// When the player shoots it, SimpleGun checks for this component and instakills.
|
||||
/// </summary>
|
||||
public class EnemyHeadHitbox : MonoBehaviour
|
||||
{
|
||||
[HideInInspector] public EnemyHealth enemyHealth;
|
||||
}
|
||||
Reference in New Issue
Block a user