Skip to content

Instantly share code, notes, and snippets.

public class EnemyUnit
{
public bool Enabled; // Is the object active within the environment?
public bool IsAlive; // Has the object been killed yet?
public bool CanBeHit; // Can the enemy be hit or is it currently invulnerable or dead?
public void OnHit()
{
if(Enabled)
{
public class EnemyUnit
{
public bool Enabled; // Is the object active within the environment?
public bool IsAlive; // Has the object been killed yet?
public bool CanBeHit; // Can the enemy be hit or is it currently invulnerable or dead?
public void OnHit()
{
if(Enabled)
{