entity changes, classes

This commit is contained in:
reisenlol 2026-01-20 01:52:57 -08:00
parent bda2b88796
commit 8bd4aedcf9
No known key found for this signature in database
20 changed files with 1917 additions and 27 deletions

View file

@ -0,0 +1,27 @@
using System;
using UnityEngine;
public class OfficerAbilities : MonoBehaviour
{
[SerializeField] private int killQuota;
private int currentKills;
public PlayerEntity thisEntity;
private void Start()
{
Enemy.OnKill += UpdateKillQuota;
}
private void UpdateKillQuota(Entity entity)
{
if (entity == thisEntity)
{
currentKills++;
currentKills = Mathf.Clamp(currentKills, 0, killQuota);
}
}
public void ActivateAbility()
{
}
}